[Bf-blender-cvs] [3d187a2764c] master: Fix T66377: Applying rotation/scale on a parent changes location of a child

Sergey Sharybin noreply at git.blender.org
Wed Jul 3 16:03:31 CEST 2019


Commit: 3d187a2764c11e72293151bfc4a5dc2da1c75ec2
Author: Sergey Sharybin
Date:   Wed Jul 3 16:03:17 2019 +0200
Branches: master
https://developer.blender.org/rB3d187a2764c11e72293151bfc4a5dc2da1c75ec2

Fix T66377: Applying rotation/scale on a parent changes location of a child

===================================================================

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



More information about the Bf-blender-cvs mailing list