Fix #112521: Socket in_out type specified as a simple enum #112525

Merged
Lukas Tönne merged 1 commits from LukasTonne/blender:fix-group-new-socket-enum into main 2023-09-18 15:53:39 +02:00
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,