[Bf-blender-cvs] [d804a5e] master: Fix T41865: Fluid bake not possible in windows using a python script from the command line

Sergey Sharybin noreply at git.blender.org
Fri Sep 19 13:35:04 CEST 2014


Commit: d804a5eaf40caab0438e7c5cf1d092e7e8c8cf2a
Author: Sergey Sharybin
Date:   Fri Sep 19 17:34:05 2014 +0600
Branches: master
https://developer.blender.org/rBd804a5eaf40caab0438e7c5cf1d092e7e8c8cf2a

Fix T41865: Fluid bake not possible in windows using a python script from the command line

Stupid missing variables initialization.

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

M	source/blender/editors/physics/physics_fluid.c

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

diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c
index 3972ed1..b53891f 100644
--- a/source/blender/editors/physics/physics_fluid.c
+++ b/source/blender/editors/physics/physics_fluid.c
@@ -1063,8 +1063,8 @@ static int fluidsimBake(bContext *C, ReportList *reports, Object *fsDomain, shor
 		WM_jobs_start(CTX_wm_manager(C), wm_job);
 	}
 	else {
-		short dummy_stop, dummy_do_update;
-		float dummy_progress;
+		short dummy_stop = 0, dummy_do_update = 0;
+		float dummy_progress = 0.0f;
 
 		/* blocking, use with exec() */
 		fluidbake_startjob((void *)fb, &dummy_stop, &dummy_do_update, &dummy_progress);




More information about the Bf-blender-cvs mailing list