From 7afbdff1b6c348227e652e1c3071ab7ba7c91c44 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sun, 23 Sep 2012 15:05:29 +0000 Subject: [PATCH] Fix for a crash due to the changes in the trunk revision 50087 for thread safety in curve evaluation. Problem report from Vicente Carro with an example .blend file for reproducing the issue. Thanks! --- source/blender/freestyle/intern/python/BPy_Freestyle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp index 9360201b035..969eed06933 100644 --- a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp +++ b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp @@ -208,6 +208,7 @@ static PyObject *Freestyle_evaluateCurveMappingF( PyObject *self, PyObject *args return NULL; } cumap = (CurveMapping *)py_srna->ptr.data; + curvemapping_initialize(cumap); /* disable extrapolation if enabled */ if ((cumap->cm[cur].flag & CUMA_EXTEND_EXTRAPOLATE)) { cumap->cm[cur].flag &= ~( CUMA_EXTEND_EXTRAPOLATE );