Fix #136891: changed legacy enum names for some compositor nodes

Followup to b43e2168e3.

Pull Request: https://projects.blender.org/blender/blender/pulls/136928
This commit is contained in:
Andrej730
2025-04-03 15:43:56 +02:00
committed by Hans Goudey
parent 3dd6104c87
commit 508fc4c8a8
4 changed files with 4 additions and 4 deletions

View File

@@ -923,7 +923,7 @@ void register_node_type_cmp_cryptomatte()
ntype.ui_name = "Cryptomatte";
ntype.ui_description =
"Generate matte for individual objects and materials using Cryptomatte render passes";
ntype.enum_name_legacy = "CRYPTOMATTE";
ntype.enum_name_legacy = "CRYPTOMATTE_V2";
ntype.nclass = NODE_CLASS_MATTE;
ntype.declare = file_ns::cmp_node_cryptomatte_declare;
blender::bke::node_type_size(ntype, 240, 100, 700);

View File

@@ -561,7 +561,7 @@ void register_node_type_cmp_dilateerode()
cmp_node_type_base(&ntype, "CompositorNodeDilateErode", CMP_NODE_DILATEERODE);
ntype.ui_name = "Dilate/Erode";
ntype.ui_description = "Expand and shrink masks";
ntype.enum_name_legacy = "DILATE_ERODE";
ntype.enum_name_legacy = "DILATEERODE";
ntype.nclass = NODE_CLASS_OP_FILTER;
ntype.draw_buttons = file_ns::node_composit_buts_dilateerode;
ntype.declare = file_ns::cmp_node_dilate_declare;

View File

@@ -197,7 +197,7 @@ void register_node_type_cmp_distance_matte()
cmp_node_type_base(&ntype, "CompositorNodeDistanceMatte", CMP_NODE_DIST_MATTE);
ntype.ui_name = "Distance Key";
ntype.ui_description = "Create matte based on 3D distance between colors";
ntype.enum_name_legacy = "DIST_MATTE";
ntype.enum_name_legacy = "DISTANCE_MATTE";
ntype.nclass = NODE_CLASS_MATTE;
ntype.declare = file_ns::cmp_node_distance_matte_declare;
ntype.draw_buttons = file_ns::node_composit_buts_distance_matte;

View File

@@ -323,7 +323,7 @@ void register_node_type_cmp_doubleedgemask()
cmp_node_type_base(&ntype, "CompositorNodeDoubleEdgeMask", CMP_NODE_DOUBLEEDGEMASK);
ntype.ui_name = "Double Edge Mask";
ntype.ui_description = "Create a gradient between two masks";
ntype.enum_name_legacy = "DOUBLE_EDGE_MASK";
ntype.enum_name_legacy = "DOUBLEEDGEMASK";
ntype.nclass = NODE_CLASS_MATTE;
ntype.declare = file_ns::cmp_node_double_edge_mask_declare;
ntype.draw_buttons = file_ns::node_composit_buts_double_edge_mask;