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
3 changed files with 1 additions and 17 deletions
Showing only changes of commit 397e9f83a7 - Show all commits

View File

@ -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.

View File

@ -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;

View File

@ -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 */