change curve evaluation functions never to modify curve data (ensures thread safety...
[blender-staging.git] / source / blender / modifiers / intern / MOD_warp.c
index 9eb360f68193c98974bdefa9bfbbae8a6b47ca53..95f6ef60665d8e08dcc954eb06ff89f5b8c66dc9 100644 (file)
@@ -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);