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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-02-23 21:02:49 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-02-23 21:02:49 +0300
commita44b08a6c473c0aae9f98dc13f9d000e5ea639bc (patch)
tree6b70d6026827b5cf6eed3af1c56a38329c2497bf /source/blender/editors/space_node/node_draw.c
parent0305fc30b3ba6a1b24e2c9c182ae2e76d553f341 (diff)
parent0aec2dcd3ae0ed382ffe7b3311a4e30fc88398e4 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 94bd752cf81..83ea519a015 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -359,6 +359,8 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
dy -= NODE_DYS / 2;
/* output sockets */
+ bool add_output_space = false;
+
for (nsock = node->outputs.first; nsock; nsock = nsock->next) {
if (nodeSocketIsHidden(nsock))
continue;
@@ -391,6 +393,12 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
dy = buty;
if (nsock->next)
dy -= NODE_SOCKDY;
+
+ add_output_space = true;
+ }
+
+ if (add_output_space) {
+ dy -= NODE_DY / 4;
}
node->prvr.xmin = locx + NODE_DYS;