diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-13 14:33:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-13 14:36:38 +0300 |
commit | 1534da457efcd52d06b2a9c8a488fe26224974b5 (patch) | |
tree | 5a09517482a12053d602a470384996104958911b /source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c | |
parent | 2f367db2cc638e47aa1c6644082070c290a8532d (diff) |
Fix snap gizmo flickering while dragging
Ignore click-drag for non-mouse button drag events
Alternative to fix issue detailed in D10886.
Diffstat (limited to 'source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c')
-rw-r--r-- | source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c index 32b6a6e6b31..ca1684811d5 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c @@ -592,7 +592,7 @@ static int gizmo_tweak_invoke(bContext *C, wmOperator *op, const wmEvent *event) const int highlight_part_init = gz->highlight_part; if (gz->drag_part != -1) { - if (ISTWEAK(event->type) || (event->val == KM_CLICK_DRAG)) { + if (WM_event_is_mouse_drag(event)) { gz->highlight_part = gz->drag_part; } } |