From 8bd7c3fba2749fdf2b16c4f32abf1a35692bc5bb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 Aug 2012 14:43:51 +0000 Subject: change curve evaluation functions never to modify curve data (ensures thread safety), now initializations has to be done outside evaluation. --- source/blender/modifiers/intern/MOD_warp.c | 4 ++++ 1 file changed, 4 insertions(+) (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 9eb360f6819..95f6ef60665 100644 --- a/source/blender/modifiers/intern/MOD_warp.c +++ b/source/blender/modifiers/intern/MOD_warp.c @@ -195,6 +195,10 @@ static void warpModifier_do(WarpModifierData *wmd, Object *ob, if (wmd->curfalloff == NULL) /* should never happen, but bad lib linking could cause it */ wmd->curfalloff = curvemapping_add(1, 0.0f, 0.0f, 1.0f, 1.0f); + if (wmd->curfalloff) { + curvemapping_initialize(wmd->curfalloff); + } + invert_m4_m4(obinv, ob->obmat); mult_m4_m4m4(mat_from, obinv, wmd->object_from->obmat); -- cgit v1.2.3