diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-09-09 22:39:51 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-09-09 22:39:51 +0400 |
commit | 00641bb237d32c341134e22201459aa74ea2e370 (patch) | |
tree | 6ba9c1e0bd2cf87ecbf0ccadfdd554eefba249b9 /source/blender/blenkernel/BKE_colortools.h | |
parent | 97d250fa65bd0472e61fa8cab23cfdce0422a9ba (diff) |
Attempt fix for #36688.
Curves may not be not initialized when called from python. C code
explicilty says that curvemapping_initialize should be called prior to
evaluating the curve, however the curve clip rectangle is not available
when calling evaluation on the curvemap. This is not possible unless we
force the evaluation on CurveMapping level, not on CurveMap level.
For now just pass a rectangle with the x boundary values of the curvemap
for evaluation to avoid the crash.
Diffstat (limited to 'source/blender/blenkernel/BKE_colortools.h')
-rw-r--r-- | source/blender/blenkernel/BKE_colortools.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_colortools.h b/source/blender/blenkernel/BKE_colortools.h index e0b7e68bafc..e703f189d6f 100644 --- a/source/blender/blenkernel/BKE_colortools.h +++ b/source/blender/blenkernel/BKE_colortools.h @@ -64,6 +64,7 @@ void curvemapping_changed_all(struct CurveMapping *cumap); /* call before _all_ evaluation functions */ void curvemapping_initialize(struct CurveMapping *cumap); +void curvemap_initialize(struct CurveMap *cuma); /* keep these (const CurveMap) - to help with thread safety */ /* single curve, no table check */ |