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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs