diff options
author | Cody Winchester <CodyWinch> | 2020-04-10 15:03:36 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-04-10 22:28:59 +0300 |
commit | 4f9a56cbc4e8719ee421a57fd6695bed633c591b (patch) | |
tree | 93f85984753bca057c65ac04beaa8e8effa71423 /source/blender/modifiers/intern/MOD_warp.c | |
parent | d6cefef98f87ae8554050052d0fa4f965a2ce809 (diff) |
Modifiers: Add Bone option for Texture Mask Object
This patch adds the option to use an armature bone in place of an object for texture mask coordinates.
This affects the 3 vertex weight modifiers, the displace modifier, the warp modifier, and the wave modifier.
With minor changes from Bastien Montagne (@mont29).
Differential Revision: https://developer.blender.org/D7348
Diffstat (limited to 'source/blender/modifiers/intern/MOD_warp.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_warp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c index c3515578e42..732644411b0 100644 --- a/source/blender/modifiers/intern/MOD_warp.c +++ b/source/blender/modifiers/intern/MOD_warp.c @@ -176,8 +176,9 @@ static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphConte } if ((wmd->texmapping == MOD_DISP_MAP_OBJECT) && wmd->map_object != NULL) { - DEG_add_object_relation( - ctx->node, wmd->map_object, DEG_OB_COMP_TRANSFORM, "Warp Modifier map"); + warp_deps_object_bone_new(ctx->node, wmd->map_object, wmd->map_bone); + + DEG_add_modifier_to_transform_relation(ctx->node, "Warp Modifier map"); } if (wmd->texture != NULL) { DEG_add_generic_id_relation(ctx->node, &wmd->texture->id, "Warp Modifier"); |