[macOS] Fix custom mouse cursor not set after mouse mode change.
(cherry picked from commit f7797bf1b3
)
This commit is contained in:
parent
5ba710863d
commit
e5265a9bc3
|
@ -3327,6 +3327,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 {
|
||||
|
|
Loading…
Reference in New Issue