Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-09-23 19:05:29 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-09-23 19:05:29 +0400
commit7afbdff1b6c348227e652e1c3071ab7ba7c91c44 (patch)
treebf010ec8a232cdcb381731d42365456d26118dbb /source/blender
parent41729976753523ee08a0afaf6a26b6caf3dee1d6 (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!
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Freestyle.cpp1
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 );