Blender  V3.3
COM_CurveBaseOperation.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
5 
6 #include "BKE_colortools.h"
7 
8 namespace blender::compositor {
9 
11 {
12  curve_mapping_ = nullptr;
13  flags_.can_be_constant = true;
14 }
15 
17 {
18  if (curve_mapping_) {
20  curve_mapping_ = nullptr;
21  }
22 }
23 
25 {
27 }
29 {
30  if (curve_mapping_) {
32  curve_mapping_ = nullptr;
33  }
34 }
35 
37 {
38  /* duplicate the curve to avoid glitches while drawing, see bug T32374. */
39  if (curve_mapping_) {
41  }
43 }
44 
45 } // namespace blender::compositor
void BKE_curvemapping_init(struct CurveMapping *cumap)
Definition: colortools.c:1235
struct CurveMapping * BKE_curvemapping_copy(const struct CurveMapping *cumap)
void BKE_curvemapping_free(struct CurveMapping *cumap)
Definition: colortools.c:103