diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_CurveBaseOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_CurveBaseOperation.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/compositor/operations/COM_CurveBaseOperation.cc b/source/blender/compositor/operations/COM_CurveBaseOperation.cc index 3c4b27aa4cf..5a0d6581f2c 100644 --- a/source/blender/compositor/operations/COM_CurveBaseOperation.cc +++ b/source/blender/compositor/operations/COM_CurveBaseOperation.cc @@ -24,37 +24,37 @@ namespace blender::compositor { CurveBaseOperation::CurveBaseOperation() { - this->m_curveMapping = nullptr; + m_curveMapping = nullptr; this->flags.can_be_constant = true; } CurveBaseOperation::~CurveBaseOperation() { - if (this->m_curveMapping) { - BKE_curvemapping_free(this->m_curveMapping); - this->m_curveMapping = nullptr; + if (m_curveMapping) { + BKE_curvemapping_free(m_curveMapping); + m_curveMapping = nullptr; } } void CurveBaseOperation::initExecution() { - BKE_curvemapping_init(this->m_curveMapping); + BKE_curvemapping_init(m_curveMapping); } void CurveBaseOperation::deinitExecution() { - if (this->m_curveMapping) { - BKE_curvemapping_free(this->m_curveMapping); - this->m_curveMapping = nullptr; + if (m_curveMapping) { + BKE_curvemapping_free(m_curveMapping); + m_curveMapping = nullptr; } } void CurveBaseOperation::setCurveMapping(CurveMapping *mapping) { /* duplicate the curve to avoid glitches while drawing, see bug T32374. */ - if (this->m_curveMapping) { - BKE_curvemapping_free(this->m_curveMapping); + if (m_curveMapping) { + BKE_curvemapping_free(m_curveMapping); } - this->m_curveMapping = BKE_curvemapping_copy(mapping); + m_curveMapping = BKE_curvemapping_copy(mapping); } } // namespace blender::compositor |