Depsgraph: Add utility function for transform dependency
This is what modifiers are to use to indicate that they depend on a transformation of the object itself. Currently should be no functional changes, but in the future this will allow to easily change transform operation depending on whether there is a simulation associated with the object.
This commit is contained in:
@@ -367,7 +367,7 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte
|
||||
SimpleDeformModifierData *smd = (SimpleDeformModifierData *)md;
|
||||
if (smd->origin != NULL) {
|
||||
DEG_add_object_relation(ctx->node, smd->origin, DEG_OB_COMP_TRANSFORM, "SimpleDeform Modifier");
|
||||
DEG_add_object_relation(ctx->node, ctx->object, DEG_OB_COMP_TRANSFORM, "SimpleDeform Modifier");
|
||||
DEG_add_modifier_to_transform_relation(ctx->node, "SimpleDeform Modifier");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user