summaryrefslogtreecommitdiff
path: root/scene/gui/tree.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-05-11 20:57:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-05-11 20:57:52 -0300
commit0c57a58056d68e0e859ab8fd91676143cec9ef17 (patch)
tree94599cdd8ca9e5099a53a9f33f3316ec745f467f /scene/gui/tree.cpp
parentc7292b1f3d22323352a14e756497b03d66c90666 (diff)
ability to drag scenes from filesystem to tree for instancing
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index c141635bbf..062a377cee 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3440,6 +3440,8 @@ void Tree::set_value_evaluator(ValueEvaluator *p_evaluator) {
}
void Tree::set_drop_mode_flags(int p_flags) {
+ if (drop_mode_flags==p_flags)
+ return;
drop_mode_flags=p_flags;
if (drop_mode_flags==0) {
drop_mode_over=NULL;