diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-04 22:37:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 22:37:55 +0200 |
commit | 46c56cad0c321e17691bb2be5563a987d61ec232 (patch) | |
tree | 55a6a1b8359b8aa5039b5370145e05aba33bb2f5 /scene/gui/graph_node.cpp | |
parent | 1c950415b0d3cd2f780b86ca2358adfaaafb4ab6 (diff) | |
parent | 8a1a067b91e2f7b0bc4c76dc06561bb5c340387c (diff) | |
download | redot-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.cpp | 4 |
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(); |