diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 07:30:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-17 07:30:41 +0300 |
commit | f409c1ec9398309dcc34fb0c5f8c4b447c2c3210 (patch) | |
tree | ab4db24a13ad80df06a8239547a54d8f460b5965 /source/blender/editors/gizmo_library | |
parent | 9759059d58fde7b5610d7a2f4dcb9f9ab636bf75 (diff) |
Gizmo: only respond to mouse-move events
Missed in recent update to event handling.
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |