diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-11-27 04:42:46 +0300 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-11-27 04:42:46 +0300 |
commit | bc293ba7e105f7648cb7bfa12dd90588093973dd (patch) | |
tree | d890aa8bc249012d71089a1de63efd936b568073 | |
parent | 83557b14fb35f69799b87ac086e37c77859e6f23 (diff) |
patch #3475 for bug #2867 Object.makeParent with noninverse doesn't clear parentinv matrix
Contributed by Stephane SOPPERA (soppera). Thanks!
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 619c8f0c53b..ae6b3ec89a4 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -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; |