diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-21 06:02:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-21 06:02:11 +0300 |
commit | 5e1a8055f4504c9207f12279f44acaf90fc7a7ed (patch) | |
tree | 446e22702c26184ff1181e150318be63f06b8f49 /source/blender | |
parent | 3c911ff8a582d2bb80d695975930e245d3fb00de (diff) |
Fix T45361: Camera does not rotate in walk mode
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 8 |
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; } |