Cleanup: use 'else if'
This commit is contained in:
parent
d286adc26e
commit
4a82df366f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue