Blender Git Loki

Git Commits -> Revision 2dcfa5a

Revision 2dcfa5a by Campbell Barton (master)
December 24, 2010, 03:51 (GMT)
return typle for mathutils slice's.
The main advantage with this is that its close to twice as fast to do 'vertex.co[:]' then 'tuple(vertex.co)', this is common for writing a vertex array.
the correct python behavior in this case is to return a copy of the original type, however euler and quats don't support different sizes so we cant do so easily.

Commit Details:

Full Hash: 2dcfa5acf93479b10a91c86b3615b0feadb1d23f
SVN Revision: 33878
Parent Commit: 47fc52f
Lines Changed: +27, -27

5 Modified Paths:

/source/blender/python/generic/mathutils_Color.c (+5, -5) (Diff)
/source/blender/python/generic/mathutils_Euler.c (+5, -5) (Diff)
/source/blender/python/generic/mathutils_Matrix.c (+6, -6) (Diff)
/source/blender/python/generic/mathutils_quat.c (+6, -6) (Diff)
/source/blender/python/generic/mathutils_Vector.c (+5, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021