diff options
author | Luca Rood <dev@lucarood.com> | 2017-04-20 18:48:37 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-04-20 18:49:45 +0300 |
commit | ca958642fa92118f8c6fc1f585f897999ff6d32a (patch) | |
tree | ae0c904d055693b7f5ef1f6a3bac7713b613de07 /source/blender/modifiers/intern/MOD_surfacedeform.c | |
parent | 52295dd4802c6a9ca05026d702cdc146efa6a293 (diff) |
Fix Surface Deform not unbinding if target is removed
Diffstat (limited to 'source/blender/modifiers/intern/MOD_surfacedeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surfacedeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index da9b926d1f4..e9ec90198c4 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -1195,7 +1195,7 @@ static bool isDisabled(ModifierData *md, int UNUSED(useRenderParams)) { SurfaceDeformModifierData *smd = (SurfaceDeformModifierData *)md; - return !smd->target; + return !smd->target && !(smd->verts && !(smd->flags & MOD_SDEF_BIND)); } ModifierTypeInfo modifierType_SurfaceDeform = { |