Revert "Only didive if the number of inputs is > 1 (/ 1 makes little sense)"

This reverts commit 793be22da9.

This commit makes single factor dynamics not work.
The result of a no-factor mixing needs to be 1.0,
result of all other cases needs to be value of total divided by factors.
Adding extra logic for the case whe factors=1 makes less sense than
allowing for occational division by 1 to happen.
This commit is contained in:
Alexia Death
2009-10-15 18:39:42 +03:00
parent 793be22da9
commit a7234d68ce

View File

@ -285,7 +285,7 @@ gimp_dynamics_output_get_linear_value (GimpDynamicsOutput *output,
factors++;
}
if (factors > 1)
if (factors > 0)
result = total / factors;
#if 0
@ -374,7 +374,7 @@ gimp_dynamics_output_get_angular_value (GimpDynamicsOutput *output,
factors++;
}
if (factors > 1)
if (factors > 0)
result = total / factors;
#if 0
@ -445,7 +445,7 @@ gimp_dynamics_output_get_aspect_value (GimpDynamicsOutput *output,
factors++;
}
if (factors > 1)
if (factors > 0)
result = total / factors;
#if 0