Fix #147678: Unsupported/Unlisted nodes can be created from menu-inputs in the compoositor

Remove support in the compositor for the following nodes:
- Combine Bundle
- Separate Bundle
- Closure Input
- Closure Output
- Evaluate Closure
- Repeat Input
- Repeat Output

Pull Request: https://projects.blender.org/blender/blender/pulls/147998
This commit is contained in:
Habib Gahbiche
2025-10-14 16:56:11 +02:00
parent 5cf0076d7e
commit 8e1ef54ae9
5 changed files with 7 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ static bool node_insert_link(bke::NodeInsertLinkParams &params)
static void node_register() static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "NodeClosureInput", NODE_CLOSURE_INPUT); sh_geo_node_type_base(&ntype, "NodeClosureInput", NODE_CLOSURE_INPUT);
ntype.ui_name = "Closure Input"; ntype.ui_name = "Closure Input";
ntype.nclass = NODE_CLASS_INTERFACE; ntype.nclass = NODE_CLASS_INTERFACE;
ntype.declare = node_declare; ntype.declare = node_declare;
@@ -271,7 +271,7 @@ static void node_blend_read(bNodeTree & /*tree*/, bNode &node, BlendDataReader &
static void node_register() static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "NodeClosureOutput", NODE_CLOSURE_OUTPUT); sh_geo_node_type_base(&ntype, "NodeClosureOutput", NODE_CLOSURE_OUTPUT);
ntype.ui_name = "Closure Output"; ntype.ui_name = "Closure Output";
ntype.nclass = NODE_CLASS_INTERFACE; ntype.nclass = NODE_CLASS_INTERFACE;
ntype.declare = node_declare; ntype.declare = node_declare;

View File

@@ -192,7 +192,7 @@ static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "NodeCombineBundle", NODE_COMBINE_BUNDLE); sh_geo_node_type_base(&ntype, "NodeCombineBundle", NODE_COMBINE_BUNDLE);
ntype.ui_name = "Combine Bundle"; ntype.ui_name = "Combine Bundle";
ntype.ui_description = "Combine multiple socket values into one."; ntype.ui_description = "Combine multiple socket values into one.";
ntype.nclass = NODE_CLASS_CONVERTER; ntype.nclass = NODE_CLASS_CONVERTER;

View File

@@ -220,7 +220,7 @@ static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "NodeEvaluateClosure", NODE_EVALUATE_CLOSURE); sh_geo_node_type_base(&ntype, "NodeEvaluateClosure", NODE_EVALUATE_CLOSURE);
ntype.ui_name = "Evaluate Closure"; ntype.ui_name = "Evaluate Closure";
ntype.ui_description = "Execute a given closure"; ntype.ui_description = "Execute a given closure";
ntype.nclass = NODE_CLASS_CONVERTER; ntype.nclass = NODE_CLASS_CONVERTER;

View File

@@ -145,7 +145,7 @@ static int node_shader_fn(GPUMaterial *mat,
static void node_register() static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "GeometryNodeRepeatInput", GEO_NODE_REPEAT_INPUT); sh_geo_node_type_base(&ntype, "GeometryNodeRepeatInput", GEO_NODE_REPEAT_INPUT);
ntype.ui_name = "Repeat Input"; ntype.ui_name = "Repeat Input";
ntype.enum_name_legacy = "REPEAT_INPUT"; ntype.enum_name_legacy = "REPEAT_INPUT";
ntype.nclass = NODE_CLASS_INTERFACE; ntype.nclass = NODE_CLASS_INTERFACE;
@@ -305,7 +305,7 @@ static int node_shader_fn(GPUMaterial *mat,
static void node_register() static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "GeometryNodeRepeatOutput", GEO_NODE_REPEAT_OUTPUT); sh_geo_node_type_base(&ntype, "GeometryNodeRepeatOutput", GEO_NODE_REPEAT_OUTPUT);
ntype.ui_name = "Repeat Output"; ntype.ui_name = "Repeat Output";
ntype.enum_name_legacy = "REPEAT_OUTPUT"; ntype.enum_name_legacy = "REPEAT_OUTPUT";
ntype.nclass = NODE_CLASS_INTERFACE; ntype.nclass = NODE_CLASS_INTERFACE;

View File

@@ -238,7 +238,7 @@ static void node_register()
{ {
static blender::bke::bNodeType ntype; static blender::bke::bNodeType ntype;
common_node_type_base(&ntype, "NodeSeparateBundle", NODE_SEPARATE_BUNDLE); sh_geo_node_type_base(&ntype, "NodeSeparateBundle", NODE_SEPARATE_BUNDLE);
ntype.ui_name = "Separate Bundle"; ntype.ui_name = "Separate Bundle";
ntype.ui_description = "Split a bundle into multiple sockets."; ntype.ui_description = "Split a bundle into multiple sockets.";
ntype.nclass = NODE_CLASS_CONVERTER; ntype.nclass = NODE_CLASS_CONVERTER;