Godot Engine – Multi-platform 2D and 3D game engine
Fixed Tree issue where stickied items would show unexpected collapse behavior
Jordi Scharpa5dff6d57647
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cppindex 75f29d733bd..eb226e257e0 100644--- a/scene/gui/tree.cpp+++ b/scene/gui/tree.cpp@@ -3171,7 +3171,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, intif (relative_pos.y > item->cached_label_height) {continue;}- int result = propagate_mouse_event(relative_pos, x_ofs, y_ofs, x_limit, p_double_click, item, p_button, p_mod, false, true);+ int result = propagate_mouse_event(relative_pos, item->sticky_offset.x, item->sticky_offset.y, x_limit, p_double_click, item, p_button, p_mod, false, true);if (result < 0) {return result;}