Nodes: Panel declarations for grouping sockets #108649

Merged
Lukas Tönne merged 27 commits from LukasTonne/blender:node-socket-categories into main 2023-06-14 18:02:46 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 26c1d070b5 - Show all commits

View File

@ -1482,7 +1482,7 @@ static void std_node_socket_interface_draw(bContext * /*C*/, uiLayout *layout, P
} }
if (U.experimental.use_node_panels) { if (U.experimental.use_node_panels) {
uiItemPointerR(col, ptr, "socket_panel", &tree_ptr, "panels", nullptr, 0); uiItemPointerR(col, ptr, "panel", &tree_ptr, "panels", nullptr, 0);
} }
} }

View File

@ -13350,7 +13350,7 @@ static void rna_def_nodetree(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_update(prop, NC_NODE, NULL); RNA_def_property_update(prop, NC_NODE, NULL);
prop = RNA_def_property(srna, "socket_panels", PROP_COLLECTION, PROP_NONE); prop = RNA_def_property(srna, "panels", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "panels_array", "panels_num"); RNA_def_property_collection_sdna(prop, NULL, "panels_array", "panels_num");
RNA_def_property_struct_type(prop, "NodePanel"); RNA_def_property_struct_type(prop, "NodePanel");
RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_clear_flag(prop, PROP_EDITABLE);