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

This commit is contained in:
Luca Rood 2017-07-03 12:41:40 +02:00
parent d48a9528ca
commit 44397a7a0a
Notes: blender-bot 2023-02-14 06:52:09 +01:00
Referenced by issue #51883, 'Make Duplicates Real' often makes a huge mess of transforms when Parent or Keep Hierarchy are set to True
1 changed files with 0 additions and 3 deletions

View File

@ -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);
}