diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2024-05-02 00:10:29 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2024-05-02 00:10:29 +0200 |
commit | 30a19a5c2f6293f8b1fff7fa1fa927f7d1f69fa0 (patch) | |
tree | d386d7ae119f1543792b61d9c7d7e06b4ab0d2e8 /modules/gdscript/tests/scripts/parser/errors/variable_conflicts_variable.gd | |
parent | 92e726d8dc27d9f9b377224d6fa776b0d42ca5c2 (diff) | |
download | redot-engine-30a19a5c2f6293f8b1fff7fa1fa927f7d1f69fa0.tar.gz |
Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
In `Viewport::_gui_force_drag` currently `Viewport::gui.mouse_focus`
gets cleared, but `Viewport::gui.mouse_focus_mask` doesn't get cleared.
This is an inconsistency which can cause a crash.
With the change of this PR, `mouse_focus_mask` also gets cleared.
This is in alignment with how regular drag and drop clears both variables.
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors/variable_conflicts_variable.gd')
0 files changed, 0 insertions, 0 deletions