From 3d187a2764c11e72293151bfc4a5dc2da1c75ec2 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 3 Jul 2019 16:03:17 +0200 Subject: Fix T66377: Applying rotation/scale on a parent changes location of a child --- source/blender/editors/object/object_transform.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/object/object_transform.c') 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); } } } -- cgit v1.2.3