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
diff options
context:
space:
mode:
-rw-r--r--source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c2
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);
}