diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-10 19:17:00 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-05-10 20:02:12 -0300 |
commit | 50a0220d2dedd1d93f94e581d6b8ff363b62a130 (patch) | |
tree | 54ed69f77c09912f044997588d9e4ea0df8210ab /platform/osx | |
parent | 1ec2fa42f83ec107d346e610496a547bde861725 (diff) |
Reset the cursor with Input.set_custom_mouse_cursor(null)
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/os_osx.mm | 5 |
1 files changed, 5 insertions, 0 deletions
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); } } |