diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-03 17:03:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-03 17:03:17 +0300 |
commit | 3d187a2764c11e72293151bfc4a5dc2da1c75ec2 (patch) | |
tree | 51d1a386a945ff480e948de2107d699926178b89 /source | |
parent | 65b2cc2301afcb26cd0eaa1abf17f7e5bc7bd899 (diff) |
Fix T66377: Applying rotation/scale on a parent changes location of a child
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_transform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 394fea2cf27..2425b5dd2f7 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -475,6 +475,10 @@ static void ignore_parent_tx(Main *bmain, Depsgraph *depsgraph, Scene *scene, Ob invert_m4_m4(ob_child->parentinv, workob.obmat); /* Copy result of BKE_object_apply_mat4(). */ BKE_object_transform_copy(ob_child, ob_child_eval); + /* Tag for update. + * This is because parent matrix did change, so in theory the child object might now be + * evaluated to a different location in another editing context. */ + DEG_id_tag_update(&ob_child->id, ID_RECALC_TRANSFORM); } } } |