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
This commit is contained in:
Lukas Tönne 2023-09-18 15:53:31 +02:00
parent 34877ec38b
commit c951464b8a
1 changed files with 6 additions and 6 deletions

View File

@ -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,