From 4f5f36c361faec460aa43ff7c9520e29b99705c1 Mon Sep 17 00:00:00 2001 From: BrotherShort <129957860+BrotherShort@users.noreply.github.com> Date: Tue, 11 Nov 2025 06:51:07 +0800 Subject: [PATCH] fix tree vertical line width bug --- scene/gui/tree.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 84c6911f5f8..c14fa409cec 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2851,6 +2851,10 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 } } } + } else { + if (_is_branch_selected(c)) { + has_sibling_selection = _is_sibling_branch_selected(c); + } } prev_ofs = root_pos.y + more_prev_ofs + line_pixel_shift;