Files
test/source/blender
Campbell Barton d8582d966f 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.
2021-08-05 16:44:03 +10:00
..
2021-03-29 19:11:17 -06:00
2021-08-05 12:03:41 +10:00
2021-08-04 19:24:19 -04:00
2021-08-04 19:24:19 -04:00
2021-08-05 12:03:41 +10:00
2021-08-05 13:14:26 +09:00
2021-08-05 12:03:41 +10:00
2021-08-05 12:03:41 +10:00
2021-08-05 16:44:03 +10:00
2021-07-26 14:57:13 +02:00
2021-08-02 15:22:54 +10:00