Nodes: Panel declarations for grouping sockets #108649
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user