[Bf-blender-cvs] [26d2caee3ba] master: Fix T92268: Group input and output nodes have inconsistent padding
Nikhil Shringarpurey
noreply at git.blender.org
Thu Dec 2 04:04:59 CET 2021
Commit: 26d2caee3ba06d47c8e58748decb3b9c2665ef52
Author: Nikhil Shringarpurey
Date: Wed Dec 1 22:04:44 2021 -0500
Branches: master
https://developer.blender.org/rB26d2caee3ba06d47c8e58748decb3b9c2665ef52
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
===================================================================
M source/blender/editors/space_node/node_draw.cc
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list