Blender Git Commit Log

Git Commits -> Revision b227c98

Revision b227c98 by Campbell Barton (master)
July 27, 2006, 01:18 (GMT)
Addition to Mathutils
vec.normalized()
mat.inverted()
mat.transposed()
made vec/float possible

normalize/invert/transpose now return None because they modify the data in place.
use the ...(ed) versions to return a modified copy.


Fixed Memory leaks from not decreffing PyFloat_AS_DOUBLE from these python functions...
(found when testing above functions)
ob.rbMass
ob.rbRadius
matrix.determinant()
quat*float
vec*float
matrix.transpose()
EXPP_setModuleConstant

Checked all instances of PyFloat_AS_DOUBLE so I dont think there are any mroe leaks there.

Commit Details:

Full Hash: b227c98c443b2106df37a9ebeb04dcd50d6f2e49
SVN Revision: 8225
Parent Commit: 4ee3515
Lines Changed: +258, -154

7 Modified Paths:

/source/blender/python/api2_2x/gen_utils.c (+1, -0) (Diff)
/source/blender/python/api2_2x/matrix.c (+35, -5) (Diff)
/source/blender/python/api2_2x/matrix.h (+8, -6) (Diff)
/source/blender/python/api2_2x/Object.c (+5, -2) (Diff)
/source/blender/python/api2_2x/quat.c (+2, -0) (Diff)
/source/blender/python/api2_2x/vector.c (+205, -141) (Diff)
/source/blender/python/api2_2x/vector.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021