[Bf-blender-cvs] [d58f989] fluid-mantaflow: epsilon fix

Sebastián Barschkis noreply at git.blender.org
Tue Feb 2 16:30:56 CET 2016


Commit: d58f9896ccb0886b4ad1d931f43c342a09561a63
Author: Sebastián Barschkis
Date:   Tue Feb 2 16:30:31 2016 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rBd58f9896ccb0886b4ad1d931f43c342a09561a63

epsilon fix

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

M	source/blender/python/manta_pp/plugin/fire.cpp

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

diff --git a/source/blender/python/manta_pp/plugin/fire.cpp b/source/blender/python/manta_pp/plugin/fire.cpp
index 62720dd..52d0214 100644
--- a/source/blender/python/manta_pp/plugin/fire.cpp
+++ b/source/blender/python/manta_pp/plugin/fire.cpp
@@ -49,7 +49,7 @@ namespace Manta {
 		fuel(i,j,k) = 0.0f;
 	
 	// Process reaction coordinate
-	if (origFuel > __FLT_EPSILON__) {
+	if (origFuel > VECTOR_EPSILON) {
 		react(i,j,k) *= fuel(i,j,k) / origFuel;
 		flame = pow(react(i,j,k), 0.5f);
 	} else {
@@ -67,7 +67,7 @@ namespace Manta {
 		(*heat)(i,j,k) = (1.0f - flame) * ignitionTemp + flame * maxTemp;
 	
 	// Mix new color
-	if (red && smokeEmit > __FLT_EPSILON__) {
+	if (red && smokeEmit > VECTOR_EPSILON) {
 		float smokeFactor = density(i,j,k) / (origSmoke + smokeEmit);
 		(*red)(i,j,k) = ((*red)(i,j,k) + flameSmokeColor.x * smokeEmit) * smokeFactor;
 		(*green)(i,j,k) = ((*green)(i,j,k) + flameSmokeColor.y * smokeEmit) * smokeFactor;




More information about the Bf-blender-cvs mailing list