diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-12 14:01:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-12 14:07:59 +0300 |
commit | 07ff9e92bbcb6c293cffba9c9428926f6fa72160 (patch) | |
tree | a5b90a7f60f28bb26a4909b60a2aad6482ba1a8b /source/blender/modifiers/intern/MOD_cloth.c | |
parent | d3870471edd775777f774dba4e66a3c87b632509 (diff) |
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.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_cloth.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_cloth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c index 1cf126d99d6..8b9a28f0a3f 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -122,7 +122,7 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte DEG_add_collision_relations(ctx->node, ctx->object, clmd->coll_parms->group, eModifierType_Collision, NULL, "Cloth Collision"); DEG_add_forcefield_relations(ctx->node, ctx->object, clmd->sim_parms->effector_weights, true, 0, "Cloth Field"); } - DEG_add_object_relation(ctx->node, ctx->object, DEG_OB_COMP_TRANSFORM, "Cloth Modifier"); + DEG_add_modifier_to_transform_relation(ctx->node, "Cloth Modifier"); } static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md) |