diff options
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_hook.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_hook.c b/source/blender/modifiers/intern/MOD_hook.c index 1a27202fb34..e175f4943a7 100644 --- a/source/blender/modifiers/intern/MOD_hook.c +++ b/source/blender/modifiers/intern/MOD_hook.c @@ -67,6 +67,13 @@ static void copyData(ModifierData *md, ModifierData *target) HookModifierData *hmd = (HookModifierData *) md; HookModifierData *thmd = (HookModifierData *) target; + if (thmd->curfalloff != NULL) { + curvemapping_free(thmd->curfalloff); + } + if (thmd->indexar != NULL) { + MEM_freeN(thmd->indexar); + } + modifier_copyData_generic(md, target); thmd->curfalloff = curvemapping_copy(hmd->curfalloff); |