From c951464b8aacf16f30ce98f8f34858cdbc2b883d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Mon, 18 Sep 2023 15:53:31 +0200 Subject: [PATCH] Fix #112521: Socket in_out type specified as a simple enum This was still using an enum_flag which allows setting multiple items. The items are already fixed bit combinations, this should be a simple enum. Pull Request: https://projects.blender.org/blender/blender/pulls/112525 --- .../makesrna/intern/rna_node_tree_interface.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/blender/makesrna/intern/rna_node_tree_interface.cc b/source/blender/makesrna/intern/rna_node_tree_interface.cc index 6b39366e0e0..299f9082788 100644 --- a/source/blender/makesrna/intern/rna_node_tree_interface.cc +++ b/source/blender/makesrna/intern/rna_node_tree_interface.cc @@ -1033,12 +1033,12 @@ static void rna_def_node_tree_interface_items_api(StructRNA *srna) parm = RNA_def_string(func, "name", nullptr, 0, "Name", "Name of the socket"); RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED); RNA_def_string(func, "description", nullptr, 0, "Description", "Description of the socket"); - RNA_def_enum_flag(func, - "in_out", - node_tree_interface_socket_in_out_items, - NODE_INTERFACE_SOCKET_INPUT, - "Input/Output Type", - "Create an input or output socket"); + RNA_def_enum(func, + "in_out", + node_tree_interface_socket_in_out_items, + NODE_INTERFACE_SOCKET_INPUT, + "Input/Output Type", + "Create an input or output socket"); parm = RNA_def_enum(func, "socket_type", rna_enum_dummy_DEFAULT_items,