[Bf-blender-cvs] [1464316] master: Bake API: small change, forcing Render to not have reports

Dalai Felinto noreply at git.blender.org
Fri May 9 03:57:14 CEST 2014


Commit: 14643167a688be05dd88416b05b90a6392090a0e
Author: Dalai Felinto
Date:   Thu May 8 22:52:56 2014 -0300
https://developer.blender.org/rB14643167a688be05dd88416b05b90a6392090a0e

Bake API: small change, forcing Render to not have reports

Again, no functional change, just trying to narrow down the possible
reasons for the random crashes in OSX.

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

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 4477534..d8e8a31 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -431,6 +431,7 @@ static int bake(
 	int i;
 
 	re = RE_NewRender(scene->id.name);
+	RE_SetReports(re, NULL);
 
 	is_tangent = pass_type == SCE_PASS_NORMAL && normal_space == R_BAKE_SPACE_TANGENT;
 	tot_materials = ob_low->totcol;
@@ -854,8 +855,6 @@ cleanup:
 	if (me_low)
 		BKE_libblock_free(bmain, me_low);
 
-	RE_SetReports(re, NULL);
-
 	return op_result;
 }




More information about the Bf-blender-cvs mailing list