slice support working in py3 for Vector and Matrix types.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 1 Jul 2009 13:31:36 +0000 (13:31 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 1 Jul 2009 13:31:36 +0000 (13:31 +0000)
commit1a86cd6dcda1b6bca338d096b6a4b332d0b39822
tree87a5fca2015899cccee526b4fce9c1405647b2be
parent82055c82170885249bf922b05a5c7a3186c07c71
slice support working in py3 for Vector and Matrix types.
Added slice to PyRNA collections and arrays (py3 only).

eg.
some_verts = mesh.verts[0:10]
some_rna_array[4:-1] = [0,1,2,3]

Collections dont support assignment, when assigning slices, resizing the array isnt support like with python lists.
source/blender/python/generic/matrix.c
source/blender/python/generic/vector.c
source/blender/python/intern/bpy_rna.c