Brought back the option "remove all used texture images". It was

committed to be default, but should react to the button in scene panels.
This commit is contained in:
Ton Roosendaal
2006-04-10 18:27:51 +00:00
parent 331406ea27
commit 4043934d2c

View File

@@ -2766,9 +2766,9 @@ void RE_Database_Free(Render *re)
re->totvlak=re->totvert=re->totlamp=re->tothalo= 0;
re->i.convertdone= 0;
//if(re->scene->r.scemode & R_FREE_IMAGE)
if((re->r.scemode & R_PREVIEWBUTS)==0)
free_all_imagetextures();
if(re->scene->r.scemode & R_FREE_IMAGE)
if((re->r.scemode & R_PREVIEWBUTS)==0)
free_all_imagetextures();
}