Fix T56975: Transform incorrect w/ constraint
This commit is contained in:
parent
65e577d222
commit
fb8d268f62
Notes:
blender-bot
2023-02-14 10:09:24 +01:00
Referenced by issue #56975, weird movement of Bone in child of constraint
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue