[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Object.c blender/source/blender/python/api2_2x/doc Object.py
Ken Hughes
khughes at pacific.edu
Tue Nov 21 22:15:15 CET 2006
khughes (Ken Hughes) 2006/11/21 22:15:15 CET
Modified files:
blender/source/blender/python/api2_2x Object.c
blender/source/blender/python/api2_2x/doc Object.py
Log:
Python API
==========
Bugfix #4951: This might be a serious change for python script writers.
-- ob.getMatrix('localspace') did not return the correct matrix when the object
had a parent; this has been corrected.
-- ob.setMatrix(m) did not work predictably (more correctly, in an easy-to-
predict manner) when an object had a parent. The method has been changed
so that if thee is a parent, it ASSUMES the matrix is "localspace",
relative to the parent. The documentation now states this.
-- ob.mat and ob.matrix are now read-only attributes, while ob.matrixLocal
(which calls Object_setMatrix() ) is now read-write.
Ton is not thrilled (is that a fair summary, Ton? ;-) with this method since
the ob->obmat is calculated from the loc/rot/size attributes of an object.
I'll let him speak on this, but I believe his desire is for this method to be
deprecated in the future and replaced with something else.
Revision Changes Path
1.219 +53 -6 blender/source/blender/python/api2_2x/Object.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Object.c.diff?r1=1.218&r2=1.219&cvsroot=bf-blender>
1.93 +12 -4 blender/source/blender/python/api2_2x/doc/Object.py
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/doc/Object.py.diff?r1=1.92&r2=1.93&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list