From 26d2caee3ba06d47c8e58748decb3b9c2665ef52 Mon Sep 17 00:00:00 2001 From: Nikhil Shringarpurey Date: Wed, 1 Dec 2021 22:04:44 -0500 Subject: [PATCH] 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 --- source/blender/editors/space_node/node_draw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 3089c1955b3..dcdfd909d9d 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -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; }