diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 08:22:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 08:22:44 +0300 |
commit | 4a82df366f6bd804a27f137a4517595ae56fe2c4 (patch) | |
tree | 141190755121c55016e937ca5cbb55b950468650 | |
parent | d286adc26e9d58475e5d7d83160999a25b6fc61f (diff) |
Cleanup: use 'else if'
-rw-r--r-- | source/blender/windowmanager/intern/wm_cursors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c index cdb7b591907..11783ae3517 100644 --- a/source/blender/windowmanager/intern/wm_cursors.c +++ b/source/blender/windowmanager/intern/wm_cursors.c @@ -264,7 +264,7 @@ void WM_cursor_grab_enable(wmWindow *win, int wrap, bool hide, int bounds[4]) if (wrap == WM_CURSOR_WRAP_X) { mode_axis = GHOST_kAxisX; } - if (wrap == WM_CURSOR_WRAP_Y) { + else if (wrap == WM_CURSOR_WRAP_Y) { mode_axis = GHOST_kGrabAxisY; } } |