summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-06-04 22:37:55 +0200
committerGitHub <noreply@github.com>2019-06-04 22:37:55 +0200
commit46c56cad0c321e17691bb2be5563a987d61ec232 (patch)
tree55a6a1b8359b8aa5039b5370145e05aba33bb2f5 /scene/gui/graph_node.cpp
parent1c950415b0d3cd2f780b86ca2358adfaaafb4ab6 (diff)
parent8a1a067b91e2f7b0bc4c76dc06561bb5c340387c (diff)
downloadredot-engine-46c56cad0c321e17691bb2be5563a987d61ec232.tar.gz
Merge pull request #29469 from bojidar-bg/29446-graphnode-seperation
Fix GraphNode not adding separation after the first node
Diffstat (limited to 'scene/gui/graph_node.cpp')
-rw-r--r--scene/gui/graph_node.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp
index e8692d56d2..6463ee5ad5 100644
--- a/scene/gui/graph_node.cpp
+++ b/scene/gui/graph_node.cpp
@@ -159,9 +159,7 @@ void GraphNode::_resort() {
fit_child_in_rect(c, r);
cache_y.push_back(vofs + size.y * 0.5);
- if (vofs > 0)
- vofs += sep;
- vofs += size.y;
+ vofs += size.y + sep;
}
update();