diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-27 11:19:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-27 11:19:20 +0100 |
commit | e3e36c963f938abbaaa1c76b47df5f46ccaf073c (patch) | |
tree | 63a2d029836cb8df58679ea2f48719b62a7d69ef /scene/gui | |
parent | 2e39e38c10768afa2d6e22a5ddec628e0b5fe147 (diff) | |
parent | 6a43f0a9012f3716a4b5e867de6c957ba1e7f12f (diff) |
Merge pull request #24588 from volzhs/tree-relationship-line
Draw relationship lines when its value is higher than 0
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 479b035f86..f22c2e260d 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1419,7 +1419,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 while (c) { - if (cache.draw_relationship_lines == 1 && (!hide_root || c->parent != root)) { + if (cache.draw_relationship_lines > 0 && (!hide_root || c->parent != root)) { int root_ofs = children_pos.x + ((p_item->disable_folding || hide_folding) ? cache.hseparation : cache.item_margin); int parent_ofs = p_pos.x + ((p_item->disable_folding || hide_folding) ? cache.hseparation : cache.item_margin); Point2i root_pos = Point2i(root_ofs, children_pos.y + label_h / 2) - cache.offset + p_draw_ofs; |