Nodes: Panel declarations for grouping sockets #108649
|
@ -573,12 +573,6 @@ bool ntreeContainsSocketPanel(const bNodeTree *ntree, const bNodeSocketPanel *pa
|
|||
*/
|
||||
int ntreeGetSocketPanelIndex(const bNodeTree *ntree, const bNodeSocketPanel *panel);
|
||||
|
||||
/**
|
||||
* Find a socket panel by its unique ID.
|
||||
* \param id: Unique ID of the panel within the node tree.
|
||||
*/
|
||||
bNodeSocketPanel *ntreeFindSocketPanelByID(bNodeTree *ntree, int id);
|
||||
|
||||
/**
|
||||
* Add a new socket panel to the node tree.
|
||||
* \param name: Name of the new panel.
|
||||
|
|
|
@ -3813,16 +3813,6 @@ int ntreeGetSocketPanelIndex(const bNodeTree *ntree, const bNodeSocketPanel *pan
|
|||
return ntree->socket_panels().first_index_try(const_cast<bNodeSocketPanel *>(panel));
|
||||
}
|
||||
|
||||
bNodeSocketPanel *ntreeFindSocketPanelByID(bNodeTree *ntree, int id)
|
||||
{
|
||||
for (bNodeSocketPanel *panel : ntree->socket_panels_for_write()) {
|
||||
if (panel->identifier == id) {
|
||||
return panel;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bNodeSocketPanel *ntreeAddSocketPanel(bNodeTree *ntree, const char *name, int flag)
|
||||
{
|
||||
bNodeSocketPanel **old_panels_array = ntree->socket_panels_array;
|
||||
|
|
|
@ -537,7 +537,7 @@ typedef struct bNodeLink {
|
|||
typedef struct bNodeSocketPanel {
|
||||
char *name;
|
||||
int flag;
|
||||
int identifier;
|
||||
int _pad;
|
||||
} bNodeSocketPanel;
|
||||
|
||||
/* the basis for a Node tree, all links and nodes reside internal here */
|
||||
|
|
Loading…
Reference in New Issue