diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-08-31 19:33:00 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-08-31 21:48:56 -0300 |
commit | 8c74257d68b15fa7818b55a8d3483ff750c984c4 (patch) | |
tree | b83e330c1b30d95f639e21553480bdc29109ece0 /scene/gui | |
parent | 29f2571662da0ee93ea2a632ec3b60aa26246563 (diff) |
Make "Search Classes" dialog have relationship lines if the setting is enabled
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 6f09488b64..bf473cca3b 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) { + if (cache.draw_relationship_lines == 1 && (c->get_parent() != root || c->get_parent() == root && !hide_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; |