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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-17 07:30:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-17 07:30:41 +0300
commitf409c1ec9398309dcc34fb0c5f8c4b447c2c3210 (patch)
treeab4db24a13ad80df06a8239547a54d8f460b5965 /source
parent9759059d58fde7b5610d7a2f4dcb9f9ab636bf75 (diff)
Gizmo: only respond to mouse-move events
Missed in recent update to event handling.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c3
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);