Gizmo: fix crash in recent snap gizmo addition

This commit is contained in:
Campbell Barton 2020-05-29 16:12:44 +10:00
parent 654fde2dd2
commit 8ec59757d1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}