Blender Git Commit Log
Git Commits -> Revision e862874
August 9, 2021, 06:00 (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: e862874606b9f1a8477c345b23fb39e53e4a9390
Parent Commit: 4d7f10d
Committed By: Jeroen Bakker
Lines Changed: +10, -0