From 50a0220d2dedd1d93f94e581d6b8ff363b62a130 Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Thu, 10 May 2018 19:17:00 -0300 Subject: Reset the cursor with Input.set_custom_mouse_cursor(null) --- platform/osx/os_osx.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/osx') diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 80d466f4b6..dbe9a11471 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1594,6 +1594,11 @@ void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, c if (p_shape == CURSOR_ARROW) { [cursor set]; } + } else { + // Reset to default system cursor + cursors[p_shape] = NULL; + cursor_shape = CURSOR_MAX; + set_cursor_shape(p_shape); } } -- cgit v1.2.3