mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue