[Bf-blender-cvs] [9fe618e] master: Fix T40048: Cycles bake crashes Blender [when there is no image]

Dalai Felinto noreply at git.blender.org
Tue May 6 17:01:45 CEST 2014


Commit: 9fe618e309157ff0534846c5d7a00a62227d1205
Author: Dalai Felinto
Date:   Tue May 6 11:57:05 2014 -0300
https://developer.blender.org/rB9fe618e309157ff0534846c5d7a00a62227d1205

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

The struct with the images was not NULL initialized.

===================================================================

M	source/blender/editors/object/object_bake_api.c

===================================================================

diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 0575a7b..88deb08 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -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;




More information about the Bf-blender-cvs mailing list