Swap condition to prevent spam in editor.

This commit is contained in:
Sam Green 2018-10-07 14:50:42 -07:00
parent 8068d0217a
commit 24a339245f

View file

@ -769,7 +769,7 @@ void Control::force_drag(const Variant &p_data, Control *p_control) {
void Control::set_drag_preview(Control *p_control) { void Control::set_drag_preview(Control *p_control) {
ERR_FAIL_COND(!is_inside_tree()); 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); get_viewport()->_gui_set_drag_preview(this, p_control);
} }