diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-09-23 19:05:29 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-09-23 19:05:29 +0400 |
commit | 7afbdff1b6c348227e652e1c3071ab7ba7c91c44 (patch) | |
tree | bf010ec8a232cdcb381731d42365456d26118dbb | |
parent | 41729976753523ee08a0afaf6a26b6caf3dee1d6 (diff) |
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!
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Freestyle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |