summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-11 17:48:19 +0200
committerGitHub <noreply@github.com>2018-10-11 17:48:19 +0200
commitebdb374d803ce224bc4d3bae33726a1aaa6c09a0 (patch)
tree18af46b37874cdc6bb0560ec4cf438b011128311 /scene
parent8b56ea31385ed8ec2ba6afde7592146e1664613d (diff)
parent24a339245fe8b833762f7801366000770a30e1ef (diff)
Merge pull request #22844 from samgreen/fix_gui_dragging_spam
Fix spam when dragging in the editor
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index effcd0abee..e155d0ef86 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);
}