Blender Git Commit Log
Git Commits -> Revision d8582d9
Revision d8582d9 by Campbell Barton (master) August 5, 2021, 06:44 (GMT) |
Fix slicing with negative indices Negative indices that remained negative after adding the sequence length caused incorrect slicing. With the default scene for example: bpy.context.scene.objects[-4:2] Gave a different result to: tuple(bpy.context.scene.objects)[-4:2] Clamp indices above zero so loops that step forward works as intended. |
Commit Details:
Full Hash: d8582d966fe4ae46c82fcbb69d3d0ca62238ea93
Parent Commit: 2b51124
Lines Changed: +10, -0