diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-08 23:14:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-08 23:14:44 +0300 |
commit | 616af4fa52b4bdc3cbee3d6d1f17b5d1fb54a0b6 (patch) | |
tree | 3a1106d6224075dc0c196ef21cd39d471a1a257b /source/blender/editors/space_view3d | |
parent | 21e08dc2b2741d00456f5ec3551bbae0ad57f8e3 (diff) |
[#20973] Fly Navigation does not center cursor on commence
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index c5a713ea82a..27e8b850d52 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -2048,6 +2048,10 @@ static int initFlyInfo (bContext *C, FlyInfo *fly, wmOperator *op, wmEvent *even /*Done with correcting for the dist*/ } + + /* center the mouse, probably the UI mafia are against this but without its quite annoying */ + WM_cursor_warp(CTX_wm_window(C), fly->ar->winrct.xmin + fly->ar->winx/2, fly->ar->winrct.ymin + fly->ar->winy/2); + return 1; } |