Fix T40048: Cycles bake crashes Blender [when there is no image]

The struct with the images was not NULL initialized.
This commit is contained in:
Dalai Felinto 2014-05-06 11:57:05 -03:00
parent 63a66478f5
commit 9fe618e309
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #40048, Cycles bake crashes Blender.
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ static int bake(
bool is_highpoly = false;
bool is_tangent;
BakeImages bake_images;
BakeImages bake_images = {NULL};
int num_pixels;
int tot_materials;