2.5: fix crash loading saved file with render result, image user
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 29 May 2009 00:20:41 +0000 (00:20 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 29 May 2009 00:20:41 +0000 (00:20 +0000)
scene wasn't set to NULL on load. Still doesn't seem entirely safe
but prevents crash here.

source/blender/blenloader/intern/readfile.c

index 9c5735a3020150f5103d80cc99b7bc7ab9e94d5c..f8657125014c888a9263ed164d04c3232397bc8a 100644 (file)
@@ -4655,6 +4655,7 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
                                        direct_link_gpencil(fd, sima->gpd);
                                if(sima->cumap)
                                        direct_link_curvemapping(fd, sima->cumap);
+                               sima->iuser.scene= NULL;
                                sima->iuser.ok= 1;
                        }
                        else if(sl->spacetype==SPACE_NODE) {