[Bf-blender-cvs] [4a82df366f6] master: Cleanup: use 'else if'
Campbell Barton
noreply at git.blender.org
Fri Apr 30 08:18:14 CEST 2021
Commit: 4a82df366f6bd804a27f137a4517595ae56fe2c4
Author: Campbell Barton
Date: Fri Apr 30 15:22:44 2021 +1000
Branches: master
https://developer.blender.org/rB4a82df366f6bd804a27f137a4517595ae56fe2c4
Cleanup: use 'else if'
===================================================================
M source/blender/windowmanager/intern/wm_cursors.c
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list