From 918f23f80fc2ab682ea6f4746c983eb372d1192a Mon Sep 17 00:00:00 2001 From: BrotherShort <129957860+BrotherShort@users.noreply.github.com> Date: Sat, 15 Nov 2025 08:27:22 +0800 Subject: [PATCH] Fix tree relationship lines are squeezed together --- scene/gui/tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index c02538d38b..43dc2e6482 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2296,6 +2296,8 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 if (item_width <= 0) { ofs = get_column_width(0); + r_self_height = compute_item_height(p_item); + label_h = r_self_height + theme_cache.v_separation; continue; } } else {