Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Hamalainen <blender@miikah.org>2013-02-11 17:28:18 +0400
committerMiika Hamalainen <blender@miikah.org>2013-02-11 17:28:18 +0400
commit16477259137f0e349cb9f51217543000c0ccf4c7 (patch)
tree9d6d0322c7b00d0c670560d59d6cbb887d074b1a /source/blender/blenkernel/intern/smoke.c
parent7fcc1ac48b405f8f6ef0ab7b7cd3dba1f5c6b24d (diff)
Fix: smoke simulator flow sometimes produced NaN values, causing fire to disappear from the simulation.
Diffstat (limited to 'source/blender/blenkernel/intern/smoke.c')
-rw-r--r--source/blender/blenkernel/intern/smoke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c
index f56d03bfb57..d26339680c8 100644
--- a/source/blender/blenkernel/intern/smoke.c
+++ b/source/blender/blenkernel/intern/smoke.c
@@ -1583,7 +1583,7 @@ BLI_INLINE void apply_inflow_fields(SmokeFlowSettings *sfs, float emission_value
}
/* set fire reaction coordinate */
- if (fuel && fuel[index]) {
+ if (fuel && fuel[index] > FLT_EPSILON) {
/* instead of using 1.0 for all new fuel add slight falloff
* to reduce flow blockiness */
float value = 1.0f - powf(1.0f - emission_value, 2.0f);