From 05a85894da29dc19088abe1aa92c505958ddee28 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Wed, 27 Jan 2016 12:24:49 -0300 Subject: [PATCH] Fix Tree Slider disappearing when clicking on it --- scene/gui/tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 2dffa332ee9..3b257019448 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1730,6 +1730,8 @@ void Tree::_text_editor_modal_close() { return; } + if (value_editor->has_point(value_editor->get_local_mouse_pos())) + return; text_editor_enter(text_editor->get_text()); }