patch #3475 for bug #2867 Object.makeParent with noninverse doesn't clear parentinv...
authorStephen Swaney <sswaney@centurytel.net>
Sun, 27 Nov 2005 01:42:46 +0000 (01:42 +0000)
committerStephen Swaney <sswaney@centurytel.net>
Sun, 27 Nov 2005 01:42:46 +0000 (01:42 +0000)
Contributed by Stephane SOPPERA (soppera).  Thanks!

source/blender/python/api2_2x/Object.c

index 619c8f0c53b2e45e7ff4364903b321ab8feeaa44..ae6b3ec89a4f37740624181a88ee3927d24099fd 100644 (file)
@@ -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;