[Bf-blender-cvs] [f1518d0f28f] master: Fix T71412: Add transform component to deforming modifier
Philipp Oeser
noreply at git.blender.org
Thu Nov 21 12:24:41 CET 2019
Commit: f1518d0f28fec4355d4c1e9a8d7dc22e9031be1c
Author: Philipp Oeser
Date: Thu Nov 21 12:20:49 2019 +0100
Branches: master
https://developer.blender.org/rBf1518d0f28fec4355d4c1e9a8d7dc22e9031be1c
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.
===================================================================
M source/blender/modifiers/intern/MOD_meshdeform.c
===================================================================
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");
}
}
More information about the Bf-blender-cvs
mailing list