[macOS] Fix custom mouse cursor not set after mouse mode change.

(cherry picked from commit f7797bf1b3)
This commit is contained in:
bruvzg 2021-06-23 10:51:01 +03:00 committed by Rémi Verschelde
parent 17b6771778
commit 5ff9b52214
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 6 additions and 0 deletions

View File

@ -3295,6 +3295,12 @@ void OS_OSX::set_mouse_mode(MouseMode p_mode) {
ignore_warp = true;
warp_events.clear();
mouse_mode = p_mode;
if (mouse_mode == MOUSE_MODE_VISIBLE || mouse_mode == MOUSE_MODE_CONFINED) {
CursorShape p_shape = cursor_shape;
cursor_shape = OS::CURSOR_MAX;
set_cursor_shape(p_shape);
}
}
OS::MouseMode OS_OSX::get_mouse_mode() const {