check curarea isnt NULL, blender would crash switching scenes in the outliner while fullscreen, then going into un-fullscree view.

This commit is contained in:
Campbell Barton
2007-03-26 03:36:46 +00:00
parent 7fd8ba99bb
commit 48d6c9f3ce

View File

@@ -340,7 +340,13 @@ void handle_view3d_around()
void handle_view3d_lock()
{
if (G.vd != NULL) {
//if (G.vd) printf("1\n");
//if (G.vd->scenelock) printf("2\n");
//if (curarea->spacetype) printf("3\n");
//if (curarea->spacetype) printf("4\n");
if (G.vd != NULL && curarea != NULL ) {
if(G.vd->localview==0 && G.vd->scenelock && curarea->spacetype==SPACE_VIEW3D) {
/* copy to scene */