diff options
author | Sam Green <greensamuelm@gmail.com> | 2018-10-07 14:50:42 -0700 |
---|---|---|
committer | Sam Green <greensamuelm@gmail.com> | 2018-10-08 11:05:20 -0700 |
commit | 24a339245fe8b833762f7801366000770a30e1ef (patch) | |
tree | 47d24d85d702f6b2132bccc9e6aa8831dcb433c8 /scene | |
parent | 8068d0217a5e74c25f83fe93fa6e077b8d0b3bf5 (diff) |
Swap condition to prevent spam in editor.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index b90a4c17f4..3017ffe1cf 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -769,7 +769,7 @@ void Control::force_drag(const Variant &p_data, Control *p_control) { void Control::set_drag_preview(Control *p_control) { ERR_FAIL_COND(!is_inside_tree()); - ERR_FAIL_COND(get_viewport()->gui_is_dragging()); + ERR_FAIL_COND(!get_viewport()->gui_is_dragging()); get_viewport()->_gui_set_drag_preview(this, p_control); } |