Fix: Distance Matte DNA enum has wrong value
The enums for the Distance Mate node had wrong values that weren't inline with RNA values. This patch corrects them and uses the enum in RNA to be more robust in the future. The wrong values weren't used directly, so this had no effect on the end user.
This commit is contained in:
@@ -2670,8 +2670,8 @@ typedef enum CMPNodeAlphaConvertMode {
|
||||
|
||||
/** Distance Matte Node. Stored in #NodeChroma.channel. */
|
||||
typedef enum CMPNodeDistanceMatteColorSpace {
|
||||
CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_YCCA = 0,
|
||||
CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_RGBA = 1,
|
||||
CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_YCCA = 2,
|
||||
} CMPNodeDistanceMatteColorSpace;
|
||||
|
||||
/** Color Spill Node. Stored in `custom2`. */
|
||||
|
||||
@@ -7119,8 +7119,8 @@ static void def_cmp_distance_matte(StructRNA *srna)
|
||||
PropertyRNA *prop;
|
||||
|
||||
static const EnumPropertyItem color_space_items[] = {
|
||||
{1, "RGB", 0, "RGB", "RGB color space"},
|
||||
{2, "YCC", 0, "YCC", "YCbCr suppression"},
|
||||
{CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_RGBA, "RGB", 0, "RGB", "RGB color space"},
|
||||
{CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_YCCA, "YCC", 0, "YCC", "YCbCr suppression"},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user