Fix for bug #5280:

Crash transforming UVs with only image window open, new transform snapping
code didn't check if a 3d view exists.
This commit is contained in:
Brecht Van Lommel 2006-11-22 02:16:29 +00:00
parent 2dbed48e24
commit cca16111bf

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