Merge pull request #91425 from Sauermann/fix-force-drag-focus-crash
Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
This commit is contained in:
commit
b2af040423
@ -2318,6 +2318,7 @@ void Viewport::_gui_force_drag(Control *p_base, const Variant &p_data, Control *
|
||||
gui.dragging = true;
|
||||
gui.drag_data = p_data;
|
||||
gui.mouse_focus = nullptr;
|
||||
gui.mouse_focus_mask.clear();
|
||||
|
||||
if (p_control) {
|
||||
_gui_set_drag_preview(p_base, p_control);
|
||||
|
Loading…
Reference in New Issue
Block a user