diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-17 17:55:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-17 17:55:25 +0200 |
| commit | ede5f696b6e62acaad3b1cf57934b2027dec2b79 (patch) | |
| tree | 4311ffbbf20b9e0a76ab23fe249d5291e6133b19 /platform/osx | |
| parent | ebd14a778d29e0de4904564a762358cbc2412303 (diff) | |
| parent | 360204e532345999f4d986cc77194c20d53a8cae (diff) | |
Merge pull request #22188 from guilhermefelipecgs/fix_20177_latest
Fix Input::set_custom_mouse_cursor showing cursor when it's invisible
Diffstat (limited to 'platform/osx')
| -rw-r--r-- | platform/osx/os_osx.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index b98113baeb..886ff4b332 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1663,7 +1663,9 @@ void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, c cursors[p_shape] = cursor; if (p_shape == cursor_shape) { - [cursor set]; + if (mouse_mode == MOUSE_MODE_VISIBLE || mouse_mode == MOUSE_MODE_CONFINED) { + [cursor set]; + } } [imgrep release]; |