Fix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.

This commit is contained in:
Miika Hamalainen
2013-04-05 07:56:59 +00:00
parent aabc999c17
commit a00b72bc75

View File

@@ -1585,7 +1585,7 @@ BLI_INLINE void apply_inflow_fields(SmokeFlowSettings *sfs, float emission_value
float fuel_flow = emission_value * sfs->fuel_amount;
/* add heat */
if (heat) {
heat[index] = MAX2(emission_value * sfs->temp, heat[index]);
heat[index] = ADD_IF_LOWER(heat[index], emission_value * sfs->temp);
}
/* absolute */
if (absolute_flow) {