forked from bartvdbraak/blender
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:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user