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.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user