X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/blobdiff_plain/a7388d650a8b0045aee680ca38cc02fc021ebbc3..8b8792e7b8aa04c33d2b57c79a6d24bf03b699fb:/source/blender/modifiers/intern/MOD_warp.c diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c index 9abe768726e..c9a9e20df23 100644 --- a/source/blender/modifiers/intern/MOD_warp.c +++ b/source/blender/modifiers/intern/MOD_warp.c @@ -64,6 +64,10 @@ static void copyData(ModifierData *md, ModifierData *target) WarpModifierData *wmd = (WarpModifierData *) md; WarpModifierData *twmd = (WarpModifierData *) target; + if (twmd->curfalloff != NULL) { + curvemapping_free(twmd->curfalloff); + } + modifier_copyData_generic(md, target); twmd->curfalloff = curvemapping_copy(wmd->curfalloff);