diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-11-21 14:20:49 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-11-21 14:24:07 +0300 |
commit | f1518d0f28fec4355d4c1e9a8d7dc22e9031be1c (patch) | |
tree | 37457dac32e91cb8add01798028efc55474b15e5 /source/blender/modifiers/intern | |
parent | 8bc57e5b91eb80f4625b7e64eafa5aa43964ca2a (diff) |
Fix T71412: Add transform component to deforming modifier
Dynamically bound mesh deform modifiers failed to update the viewport on
object transformation of deformer. The TODO by Sergey, which suggested
adding the transform component to the depsgraph, was already there, and
worked to fix T71412.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshdeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index 408e38f43ab..21fdc010a1d 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -158,7 +158,7 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte { MeshDeformModifierData *mmd = (MeshDeformModifierData *)md; if (mmd->object != NULL) { - /* TODO(sergey): Do we need transform component here? */ + DEG_add_object_relation(ctx->node, mmd->object, DEG_OB_COMP_TRANSFORM, "Mesh Deform Modifier"); DEG_add_object_relation(ctx->node, mmd->object, DEG_OB_COMP_GEOMETRY, "Mesh Deform Modifier"); } } |