[Bf-blender-cvs] [6893570] epic-navigation: Fix lookaround twist the view after awhile

Dalai Felinto noreply at git.blender.org
Mon Aug 24 22:29:56 CEST 2015


Commit: 689357025e3567bc3bb0af7496cc1816af84c837
Author: Dalai Felinto
Date:   Mon Aug 24 16:41:34 2015 -0300
Branches: epic-navigation
https://developer.blender.org/rB689357025e3567bc3bb0af7496cc1816af84c837

Fix lookaround twist the view after awhile

===================================================================

M	source/blender/editors/space_view3d/view3d_walk.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c
index 04dbb68..3a17b35 100644
--- a/source/blender/editors/space_view3d/view3d_walk.c
+++ b/source/blender/editors/space_view3d/view3d_walk.c
@@ -123,7 +123,7 @@ typedef enum eWalkGravityState {
 } eWalkGravityState;
 
 typedef enum eWalkMouseMode {
-	WALK_MOUSE_LOOKAROUND     = 0,
+	WALK_MOUSE_LOOKAROUND = 0,
 	WALK_MOUSE_MOVEHORIZONTAL,
 	WALK_MOUSE_MOVEVERTICAL,
 	WALK_MOUSE_NULL,
@@ -1212,12 +1212,12 @@ static int walkApply(bContext *C, wmOperator *op, WalkInfo *walk)
 				case WALK_MOUSE_LOOKAROUND:
 				default:
 				{
-					if (moffset[0])
-						walk_mouse_rotate_horizontal(ar, rv3d, walk->mouse_speed, moffset, mat, upvec);
-
 					if (moffset[1])
 						walk_mouse_rotate_vertical(ar, rv3d, walk->mouse_speed, moffset, mat, upvec);
 
+					if (moffset[0])
+						walk_mouse_rotate_horizontal(ar, rv3d, walk->mouse_speed, moffset, mat, upvec);
+
 					break;
 				}
 			}




More information about the Bf-blender-cvs mailing list