Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Shringarpurey <Nikhil.Net>2021-12-02 06:04:44 +0300
committerHans Goudey <h.goudey@me.com>2021-12-02 06:04:44 +0300
commit26d2caee3ba06d47c8e58748decb3b9c2665ef52 (patch)
tree2fdcd69a3c514672ef3185181c4d4fa4ce25b5ac /source/blender/editors/space_node/node_draw.cc
parent218360a89217f4e8321319035bf4d9ff97fb2658 (diff)
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
Diffstat (limited to 'source/blender/editors/space_node/node_draw.cc')
-rw-r--r--source/blender/editors/space_node/node_draw.cc4
1 files 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;
}