diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-06-04 16:05:23 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-06-04 16:05:23 +0300 |
commit | 8a1a067b91e2f7b0bc4c76dc06561bb5c340387c (patch) | |
tree | f9fc09451807272c578efeb09aee152d43b12762 /scene/gui | |
parent | 4b399034aa162c032dc50ef1db9c04d2468bef12 (diff) |
Fix GraphNode not adding seperation after the first node
Fixes #29446
Diffstat (limited to 'scene/gui')
-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(); |