diff --git a/source/blender/src/view.c b/source/blender/src/view.c index e13a23691f9..8d39a0c9eef 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -536,7 +536,14 @@ void viewmove(int mode) short mvalball[2], mval[2], mvalo[2]; short use_sel = 0; + /* 3D window may not be defined */ + if( !G.vd ) { + fprintf( stderr, "G.vd == NULL in viewmove()\n" ); + return; + } + /* sometimes this routine is called from headerbuttons */ + areawinset(curarea->win); initgrabz(-G.vd->ofs[0], -G.vd->ofs[1], -G.vd->ofs[2]);