Fix T56975: Transform incorrect w/ constraint

This commit is contained in:
2018-10-03 12:21:46 +10:00
parent 65e577d222
commit fb8d268f62
2 changed files with 2 additions and 0 deletions

View File

@@ -705,6 +705,7 @@ void BKE_pose_bone_done(struct Depsgraph *depsgraph,
copy_m4_m4(pchan_orig->pose_mat, pchan->pose_mat);
copy_m4_m4(pchan_orig->chan_mat, pchan->chan_mat);
copy_v3_v3(pchan_orig->pose_head, pchan->pose_mat[3]);
copy_m4_m4(pchan_orig->constinv, pchan->constinv);
BKE_pose_where_is_bone_tail(pchan_orig);
}
}

View File

@@ -146,6 +146,7 @@ void BKE_object_eval_done(Depsgraph *depsgraph, Object *ob)
if (DEG_is_active(depsgraph)) {
Object *ob_orig = DEG_get_original_object(ob);
copy_m4_m4(ob_orig->obmat, ob->obmat);
copy_m4_m4(ob_orig->constinv, ob->constinv);
ob_orig->transflag = ob->transflag;
ob_orig->flag = ob->flag;
}