From cca16111bfda389265fef6f30004ef6322f620c8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 22 Nov 2006 02:16:29 +0000 Subject: [PATCH] Fix for bug #5280: Crash transforming UVs with only image window open, new transform snapping code didn't check if a 3d view exists. --- source/blender/src/transform_snap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c index 9c7d7bc40ac..79022b16900 100644 --- a/source/blender/src/transform_snap.c +++ b/source/blender/src/transform_snap.c @@ -106,7 +106,7 @@ void initSnapping(TransInfo *t) { setSnappingCallback(t); - if (G.vd->flag2 & V3D_TRANSFORM_SNAP) + if ((t->spacetype==SPACE_VIEW3D) && (G.vd->flag2 & V3D_TRANSFORM_SNAP)) { t->tsnap.status |= SNAP_ON; }