From 49fe27ee46b4d9272957c21c13365db322ca8396 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 8 May 2018 14:21:02 +0200 Subject: Modifiers: sanitize/cleanup modifiers' copying & freeing code. Should also fix T55000: Crash with hooks and curves in Cycles render. --- source/blender/modifiers/intern/MOD_warp.c | 4 ---- 1 file changed, 4 deletions(-) (limited to '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 00d7906a442..a22120d7b3d 100644 --- a/source/blender/modifiers/intern/MOD_warp.c +++ b/source/blender/modifiers/intern/MOD_warp.c @@ -66,10 +66,6 @@ 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); -- cgit v1.2.3