Revert "Fix #116082: support changing interface socket bl_socket_idname"
This reverts commit 42faf9d2427bffc4743f00b3e991c76601a77111. This caused #118529. Better figure out a fix first before committing this again.
This commit is contained in:
parent
4c708a8c3e
commit
a1b95f69fa
@ -904,12 +904,6 @@ const EnumPropertyItem *RNA_node_tree_interface_socket_menu_itemf(bContext * /*C
|
||||
return RNA_node_enum_definition_itemf(*data->enum_items, r_free);
|
||||
}
|
||||
|
||||
static void rna_NodeTreeInterfaceSocket_idname_set(PointerRNA *ptr, const char *value)
|
||||
{
|
||||
bNodeTreeInterfaceSocket &socket = *static_cast<bNodeTreeInterfaceSocket *>(ptr->data);
|
||||
socket.set_socket_type(value);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static void rna_def_node_interface_item(BlenderRNA *brna)
|
||||
@ -1063,8 +1057,6 @@ static void rna_def_node_interface_socket(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, nullptr, "socket_type");
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_property_ui_text(prop, "Socket Type Name", "Name of the socket type");
|
||||
RNA_def_property_string_funcs(prop, nullptr, nullptr, "rna_NodeTreeInterfaceSocket_idname_set");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeTreeInterfaceItem_update");
|
||||
|
||||
func = RNA_def_function(srna, "draw", nullptr);
|
||||
RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
|
||||
|
Loading…
Reference in New Issue
Block a user