diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-29 09:12:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-29 09:12:44 +0300 |
commit | 8ec59757d1d80c4edbfcf429329c084fc37141c6 (patch) | |
tree | 5f4cbe51bd31fde9895a41e1a190b3d468deb52b /source/blender/editors | |
parent | 654fde2dd213e8799da09875eab961d5286b2452 (diff) |
Gizmo: fix crash in recent snap gizmo addition
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c index 19370f345fd..1fdf1160d09 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c @@ -253,7 +253,7 @@ short ED_gizmotypes_snap_3d_update(wmGizmo *gz, } #ifdef USE_SNAP_DETECT_FROM_KEYMAP_HACK - if (wm) { + if (wm && wm->winactive) { gizmo_snap->invert_snap = invert_snap(gz, wm, wm->winactive->eventstate); } |