You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Merge pull request #22844 from samgreen/fix_gui_dragging_spam
Fix spam when dragging in the editor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user