Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Hide sticky TreeItems when dragging

vaner-org7f17884cb127
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index bcfc91b754b..122d12777b0 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -5639,7 +5639,7 @@ void Tree::_notification(int p_what) {
}
sticky_stack_end = 0;
- if (root) {
+ if (root && !drop_mode_flags) {
sticky_list.clear();
Vector2 stick_ofs;
Vector2 last_ofs = stick_ofs;