Nodes: Support for input/output sockets in same vertical space #112250

Merged
Lukas Tönne merged 25 commits from LukasTonne/blender:node-inline-sockets into main 2023-09-14 16:08:11 +02:00
Showing only changes of commit d7f4f8a5a2 - Show all commits

View File

@ -511,6 +511,7 @@ struct NodeInterfacePanelData {
operator bool() const
{
/* Panel can only be drawn when state data is available. */
LukasTonne marked this conversation as resolved Outdated

These are public members, which shouldn't have the _ suffix. Same above.

These are public members, which shouldn't have the `_` suffix. Same above.
return this->state != nullptr && this->runtime != nullptr;
}
};
@ -522,7 +523,7 @@ struct NodeInterfaceSocketData {
operator bool() const
{
/* One socket side is enough to be valid. */
/* Socket can be drawn if there is an input, or an output, or both. */
return this->input != nullptr || this->output != nullptr;
}
};