Blender Git Loki
Git Commits -> Revision 120292a
Revision 120292a by Campbell Barton (blender-v2.83-release) August 16, 2021, 07:33 (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: 120292a1909f0a6962da9cc4c22cfeedb980c7cc
Parent Commit: 6d1895c
Committed By: Jeroen Bakker
Lines Changed: +10, -0