[Bf-blender-cvs] [3804e91] fluid-mantaflow: initialize color grids before burning - needed!
Sebastián Barschkis
noreply at git.blender.org
Thu Jan 28 12:36:33 CET 2016
Commit: 3804e9112777744245581e3043cc0de5399ae483
Author: Sebastián Barschkis
Date: Mon Sep 7 01:32:42 2015 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rB3804e9112777744245581e3043cc0de5399ae483
initialize color grids before burning - needed!
===================================================================
M intern/smoke/intern/FLUID_3D.cpp
===================================================================
diff --git a/intern/smoke/intern/FLUID_3D.cpp b/intern/smoke/intern/FLUID_3D.cpp
index a33e6cd..a272588 100644
--- a/intern/smoke/intern/FLUID_3D.cpp
+++ b/intern/smoke/intern/FLUID_3D.cpp
@@ -784,6 +784,9 @@ void FLUID_3D::step(float dt, float gravity[3])
void FLUID_3D::processBurn(float *fuel, float *smoke, float *react, float *heat,
float *r, float *g, float *b, int total_cells, float dt)
{
+ // Need to make sure that color grids are initialized as they are needed in processBurn
+ initColors(0.0f, 0.0f, 0.0f);
+
PyGILState_STATE gilstate = PyGILState_Ensure();
PyRun_SimpleString(fire_process_burn.c_str());
PyGILState_Release(gilstate);
More information about the Bf-blender-cvs
mailing list