1
1

Fix T92268: Group input and output nodes have inconsistent padding

The group output node did not have the same size padding as the group
input, leading to the node looking different and actually being smaller.

Differential Revision: https://developer.blender.org/D13092
This commit is contained in:
Nikhil Shringarpurey
2021-12-01 22:04:44 -05:00
committed by Hans Goudey
parent 218360a892
commit 26d2caee3b

View File

@@ -382,8 +382,8 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
/* Header. */
dy -= NODE_DY;
/* Little bit of space in top. */
if (node->outputs.first) {
/* Add a little bit of padding above the top socket. */
if (node->outputs.first || node->inputs.first) {
dy -= NODE_DYS / 2;
}