Skip to content

Commit

Permalink
Handle drawing of relationship lines better to take in to account inv…
Browse files Browse the repository at this point in the history
…isible children
  • Loading branch information
monkeyman192 committed May 31, 2022
1 parent 532e253 commit 5c29a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5c29a7d

Please sign in to comment.