Blender Git Loki

Git Commits -> Revision 2dbed48

Revision 2dbed48 by Ken Hughes (master)
November 21, 2006, 21:15 (GMT)


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.

Commit Details:

Full Hash: 2dbed48e24e55703da78fe557f4c7b2681ba3d01
SVN Revision: 9016
Parent Commit: 973e892
Lines Changed: +64, -9

2 Modified Paths:

/source/blender/python/api2_2x/doc/Object.py (+12, -4) (Diff)
/source/blender/python/api2_2x/Object.c (+52, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021