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:
parent
34877ec38b
commit
c951464b8a
|
@ -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");
|
parm = RNA_def_string(func, "name", nullptr, 0, "Name", "Name of the socket");
|
||||||
RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED);
|
RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED);
|
||||||
RNA_def_string(func, "description", nullptr, 0, "Description", "Description of the socket");
|
RNA_def_string(func, "description", nullptr, 0, "Description", "Description of the socket");
|
||||||
RNA_def_enum_flag(func,
|
RNA_def_enum(func,
|
||||||
"in_out",
|
"in_out",
|
||||||
node_tree_interface_socket_in_out_items,
|
node_tree_interface_socket_in_out_items,
|
||||||
NODE_INTERFACE_SOCKET_INPUT,
|
NODE_INTERFACE_SOCKET_INPUT,
|
||||||
"Input/Output Type",
|
"Input/Output Type",
|
||||||
"Create an input or output socket");
|
"Create an input or output socket");
|
||||||
parm = RNA_def_enum(func,
|
parm = RNA_def_enum(func,
|
||||||
"socket_type",
|
"socket_type",
|
||||||
rna_enum_dummy_DEFAULT_items,
|
rna_enum_dummy_DEFAULT_items,
|
||||||
|
|
Loading…
Reference in New Issue