Bugfix: shaded mode or baking could crash, didn't always create

memarena but it's being used now in more places so needs to be
created always.
This commit is contained in:
Brecht Van Lommel
2008-03-05 17:19:57 +00:00
parent 8b5933af4e
commit 94f8db96d9

View File

@@ -5331,8 +5331,7 @@ void RE_Database_Baking(Render *re, Scene *scene, int type, Object *actob)
}
/* setup render stuff */
if(type!=RE_BAKE_LIGHT)
re->memArena = BLI_memarena_new(BLI_MEMARENA_STD_BUFSIZE);
re->memArena = BLI_memarena_new(BLI_MEMARENA_STD_BUFSIZE);
re->totvlak=re->totvert=re->totstrand=re->totlamp=re->tothalo= 0;
re->lights.first= re->lights.last= NULL;