Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-07-21 06:02:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-21 06:02:11 +0300
commit5e1a8055f4504c9207f12279f44acaf90fc7a7ed (patch)
tree446e22702c26184ff1181e150318be63f06b8f49 /source/blender/editors/space_view3d
parent3c911ff8a582d2bb80d695975930e245d3fb00de (diff)
Fix T45361: Camera does not rotate in walk mode
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_walk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c
index a5813528d75..243c6e5c8c3 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;
}