From 571cd4de7d81cb74a60753337fec74b86dfb0a47 Mon Sep 17 00:00:00 2001 From: BrotherShort <129957860+BrotherShort@users.noreply.github.com> Date: Sat, 1 Mar 2025 15:23:27 +0800 Subject: [PATCH] Keep editor SceneTree buttons attached to the cell in Right-To-Left Update tree.cpp. Fix #102191. Update scene/gui/tree.cpp Co-Authored-By: Tomasz Chabora --- scene/gui/tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index cd6c51de4b..9a2c244733 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2177,7 +2177,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 } } - if (!rtl && p_item->cells[i].buttons.size()) { + if (!p_item->cells[i].buttons.is_empty()) { int buttons_width = 0; for (int j = p_item->cells[i].buttons.size() - 1; j >= 0; j--) { Ref button_texture = p_item->cells[i].buttons[j].texture;