patch #3475 for bug #2867 Object.makeParent with noninverse doesn't clear parentinv matrix

Contributed by Stephane SOPPERA (soppera).  Thanks!
This commit is contained in:
Stephen Swaney 2005-11-27 01:42:46 +00:00
parent 83557b14fb
commit bc293ba7e1

@ -1786,6 +1786,7 @@ static PyObject *internal_makeParent(Object *parent, PyObject *py_child,
child->parent = parent;
//py_obj_child = (BPy_Object *) py_child;
if( noninverse == 1 ) {
Mat4One(child->parentinv);
/* Parent inverse = unity */
child->loc[0] = 0.0;
child->loc[1] = 0.0;