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:
Philipp Oeser 2019-11-21 12:20:49 +01:00 committed by Sybren A. Stüvel
parent 8bc57e5b91
commit f1518d0f28
Notes: blender-bot 2023-02-14 08:42:54 +01:00
Referenced by issue #71412, Dynamically bound mesh deform modifiers fail to update viewport on object transformation of deformer
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}