Blender Git Loki

Git Commits -> Revision 2a80368

Revision 2a80368 by Campbell Barton (master)
December 24, 2011, 07:03 (GMT)
mathtils, convenience attributes added 'row' and 'col', this makes the row/col swap a lot easier to deal with, since
now you can still use column access

previously...
mat[2] = 1, 2, 3

needed to be converted into...
mat[0][2] = 1
mat[1][2] = 2
mat[2][2] = 3

but with column access you can do...
mat.col[2] = 1, 2, 3


Having 'row' attribute is a bit redundant since direct indexing on a matrix uses row but included for completeness.

Commit Details:

Full Hash: 2a803680054506fd0e1edec73fa4f184df3a3bc8
SVN Revision: 42858
Parent Commit: 28a5549
Lines Changed: +218, -7

3 Modified Paths:

/source/blender/python/mathutils/mathutils.c (+3, -1) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.c (+214, -6) (Diff)
/source/blender/python/mathutils/mathutils_Matrix.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021