Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-11-21 14:20:49 +0300
committerSybren A. Stüvel <sybren@blender.org>2019-11-21 14:24:07 +0300
commitf1518d0f28fec4355d4c1e9a8d7dc22e9031be1c (patch)
tree37457dac32e91cb8add01798028efc55474b15e5 /source/blender/modifiers/intern/MOD_meshdeform.c
parent8bc57e5b91eb80f4625b7e64eafa5aa43964ca2a (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/MOD_meshdeform.c')
-rw-r--r--source/blender/modifiers/intern/MOD_meshdeform.c2
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");
}
}