fix for a crash when loading a new blend file which had a scene with the same name...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 31 Mar 2011 05:20:48 +0000 (05:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 31 Mar 2011 05:20:48 +0000 (05:20 +0000)
also NULL the bakebuf just incase its accessed in future though at the moment this isnt causing any problems.

source/blender/render/intern/source/convertblender.c

index 73addfb77e4503dca40e9fe4906151c712685876..62f47dcd3b587ad4221f74b776777f2fa86e4fa6 100644 (file)
@@ -4636,7 +4636,10 @@ void RE_Database_Free(Render *re)
        
        re->totvlak=re->totvert=re->totstrand=re->totlamp=re->tothalo= 0;
        re->i.convertdone= 0;
-       
+
+       re->backbuf= NULL;
+       re->bakebuf= NULL;
+
        if(re->scene)
                if(re->scene->r.scemode & R_FREE_IMAGE)
                        if((re->r.scemode & R_PREVIEWBUTS)==0)