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>2010-02-08 23:14:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-08 23:14:44 +0300
commit616af4fa52b4bdc3cbee3d6d1f17b5d1fb54a0b6 (patch)
tree3a1106d6224075dc0c196ef21cd39d471a1a257b /source/blender/editors
parent21e08dc2b2741d00456f5ec3551bbae0ad57f8e3 (diff)
[#20973] Fly Navigation does not center cursor on commence
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_view.c4
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;
}