summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRay Koopa <raykoopa@users.noreply.github.com>2017-12-11 00:56:49 +0100
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2018-11-20 20:52:27 -0200
commitfddffa9eb815bd036c2b926cb7d7b8f4122a54c7 (patch)
tree2627ff4dc20d3de858d0d386d0a580a48c0dfdd7 /scene/gui
parentf2cc9698433a32a05c76987acd20a07441313037 (diff)
Unify editor class and reference search
Co-authored-by: Michael Alexsander Silva Dias <michaelalexsander@protonmail.com>
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index c083e727d1..f441364c44 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 && (c->get_parent() != root || !hide_root)) {
+ if (cache.draw_relationship_lines == 1 && (!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;