Cleanup: use 'else if'

This commit is contained in:
Campbell Barton 2021-04-30 15:22:44 +10:00
parent d286adc26e
commit 4a82df366f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}