Commit: 44397a7a0a93f4e24865cef9276d09d0fe51880f
Author: Luca Rood
Date:   Mon Jul 3 12:41:40 2017 +0200
Branches: master
https://developer.blender.org/rB44397a7a0a93f4e24865cef9276d09d0fe51880f

Fix T51883: Wrong matrix computation in "Make Duplicates Real"

===================================================================

M       source/blender/editors/object/object_add.c

===================================================================

diff --git a/source/blender/editors/object/object_add.c 
b/source/blender/editors/object/object_add.c
index a901560079a..b5a9c4e9e5b 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1464,8 +1464,6 @@ static void make_object_duplilist_real(bContext *C, Scene 
*scene, Base *base,
                        }
 
                        if (ob_dst->parent) {
-                               invert_m4_m4(ob_dst->parentinv, dob->mat);
-
                                /* note, this may be the parent of other 
objects, but it should
                                 * still work out ok */
                                BKE_object_apply_mat4(ob_dst, dob->mat, false, 
true);
@@ -1486,7 +1484,6 @@ static void make_object_duplilist_real(bContext *C, Scene 
*scene, Base *base,
                        ob_dst->partype = PAROBJECT;
 
                        /* similer to the code above, see comments */
-                       invert_m4_m4(ob_dst->parentinv, dob->mat);
                        BKE_object_apply_mat4(ob_dst, dob->mat, false, true);
                        DAG_id_tag_update(&ob_dst->id, OB_RECALC_OB);
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to