[Bf-blender-cvs] [c723e91ee15] master: WM: add mouse-move after smooth-view

Campbell Barton noreply at git.blender.org
Mon Jan 22 03:59:16 CET 2018


Commit: c723e91ee155612b68950ca2a44b49bdd3c72838
Author: Campbell Barton
Date:   Mon Jan 22 14:06:32 2018 +1100
Branches: master
https://developer.blender.org/rBc723e91ee155612b68950ca2a44b49bdd3c72838

WM: add mouse-move after smooth-view

When hot-spots moved under the pointer,
clicking wouldn't activate the correct item.

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

M	source/blender/editors/interface/view2d_ops.c
M	source/blender/editors/space_view3d/view3d_view.c

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

diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c
index b271b0b5bc6..dc68c8b58de 100644
--- a/source/blender/editors/interface/view2d_ops.c
+++ b/source/blender/editors/interface/view2d_ops.c
@@ -1509,6 +1509,9 @@ static int view2d_smoothview_invoke(bContext *C, wmOperator *UNUSED(op), const w
 
 		WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), v2d->smooth_timer);
 		v2d->smooth_timer = NULL;
+
+		/* Event handling won't know if a UI item has been moved under the pointer. */
+		WM_event_add_mousemove(C);
 	}
 	else {
 		/* ease in/out */
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index 85d21a13add..68680eee091 100644
--- a/source/blender/editors/space_view3d/view3d_view.c
+++ b/source/blender/editors/space_view3d/view3d_view.c
@@ -399,6 +399,8 @@ static void view3d_smoothview_apply(bContext *C, View3D *v3d, ARegion *ar, bool
 			ED_view3d_camera_lock_autokey(v3d, rv3d, C, true, true);
 		}
 
+		/* Event handling won't know if a UI item has been moved under the pointer. */
+		WM_event_add_mousemove(C);
 	}
 	
 	if (sync_boxview && (rv3d->viewlock & RV3D_BOXVIEW)) {



More information about the Bf-blender-cvs mailing list