[Bf-blender-cvs] [f409c1ec939] blender2.8: Gizmo: only respond to mouse-move events
Campbell Barton
noreply at git.blender.org
Mon Sep 17 06:19:42 CEST 2018
Commit: f409c1ec9398309dcc34fb0c5f8c4b447c2c3210
Author: Campbell Barton
Date: Mon Sep 17 14:30:00 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBf409c1ec9398309dcc34fb0c5f8c4b447c2c3210
Gizmo: only respond to mouse-move events
Missed in recent update to event handling.
===================================================================
M source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
===================================================================
diff --git a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
index 729548e6e00..90f620bd9c4 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c
@@ -231,6 +231,9 @@ static int gizmo_move_modal(
bContext *C, wmGizmo *gz, const wmEvent *event,
eWM_GizmoFlagTweak UNUSED(tweak_flag))
{
+ if (event->type != MOUSEMOVE) {
+ return OPERATOR_RUNNING_MODAL;
+ }
MoveGizmo3D *move = (MoveGizmo3D *)gz;
MoveInteraction *inter = gz->interaction_data;
ARegion *ar = CTX_wm_region(C);
More information about the Bf-blender-cvs
mailing list