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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-21 19:14:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-21 19:14:29 +0400
commit3090ae35afe478435a77be6a9c1be913fe406242 (patch)
tree598e1d42ff89a6cc99355a1e34e0f053bb3d786e /source/blender/compositor/operations/COM_CurveBaseOperation.cpp
parent857a3cd1120c402e22928e7d43612a9fee72a80d (diff)
fix [#32374] Curve compositor UI drawing glitch
copy the curve for the compositor.
Diffstat (limited to 'source/blender/compositor/operations/COM_CurveBaseOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_CurveBaseOperation.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_CurveBaseOperation.cpp b/source/blender/compositor/operations/COM_CurveBaseOperation.cpp
index 48d2bcd0ef9..36c49859880 100644
--- a/source/blender/compositor/operations/COM_CurveBaseOperation.cpp
+++ b/source/blender/compositor/operations/COM_CurveBaseOperation.cpp
@@ -38,3 +38,17 @@ void CurveBaseOperation::initExecution()
{
curvemapping_initialize(this->m_curveMapping);
}
+void CurveBaseOperation::deinitExecution()
+{
+ curvemapping_free(this->m_curveMapping);
+ this->m_curveMapping = NULL;
+}
+
+void CurveBaseOperation::setCurveMapping(CurveMapping *mapping)
+{
+ /* duplicate the curve to avoid glitches while drawing, see bug [#32374] */
+ if (this->m_curveMapping) {
+ curvemapping_free(this->m_curveMapping);
+ }
+ this->m_curveMapping = curvemapping_copy(mapping);
+}