[Bf-blender-cvs] [5e1a805] master: Fix T45361: Camera does not rotate in walk mode

Campbell Barton noreply at git.blender.org
Tue Jul 21 05:08:31 CEST 2015


Commit: 5e1a8055f4504c9207f12279f44acaf90fc7a7ed
Author: Campbell Barton
Date:   Tue Jul 21 13:02:11 2015 +1000
Branches: master
https://developer.blender.org/rB5e1a8055f4504c9207f12279f44acaf90fc7a7ed

Fix T45361: Camera does not rotate in walk mode

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

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 a581352..243c6e5 100644
--- a/source/blender/editors/space_view3d/view3d_walk.c
+++ b/source/blender/editors/space_view3d/view3d_walk.c
@@ -664,6 +664,14 @@ static void walkEvent(bContext *C, wmOperator *op, WalkInfo *walk, const wmEvent
 			{
 				walk->is_cursor_first = false;
 			}
+			else {
+				/* note, its possible the system isn't giving us the warp event
+				 * ideally we shouldn't have to worry about this, see: T45361 */
+				wmWindow *win = CTX_wm_window(C);
+				WM_cursor_warp(win,
+				               walk->ar->winrct.xmin + walk->center_mval[0],
+				               walk->ar->winrct.ymin + walk->center_mval[1]);
+			}
 			return;
 		}




More information about the Bf-blender-cvs mailing list