diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-31 17:50:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 17:50:25 +0200 |
commit | 204f260fef5a42228e09b3129d3f9d7364c33a9f (patch) | |
tree | 854f4bbcc03dc47bef2bdadbea2908652ec1b5b2 /scene | |
parent | 532e253a7c0544bfb4866fb00129cfa1d39fcd62 (diff) | |
parent | 5c29a7dbc5d34a9de3881eb2894cdf3011d32ef4 (diff) |
Merge pull request #61566 from monkeyman192/correct_relationship_line_lens
Diffstat (limited to 'scene')
-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 dee5ff3db9..d3e7540790 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2169,7 +2169,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 int parent_ofs = p_pos.x + cache.item_margin; Point2i root_pos = Point2i(root_ofs, children_pos.y + label_h / 2) - cache.offset + p_draw_ofs; - if (c->get_first_child() != nullptr) { + if (c->get_visible_child_count() > 0) { root_pos -= Point2i(cache.arrow->get_width(), 0); } |