Cleanup: fix source typo
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D15630
This commit is contained in:
parent
47f433c776
commit
c0b6aeeca7
|
@ -220,11 +220,11 @@ BLI_NOINLINE static void update_elimination_mask_based_on_density_factors(
|
|||
const float v1_density_factor = std::max(0.0f, density_factors[v1_loop]);
|
||||
const float v2_density_factor = std::max(0.0f, density_factors[v2_loop]);
|
||||
|
||||
const float probablity = v0_density_factor * bary_coord.x + v1_density_factor * bary_coord.y +
|
||||
const float probability = v0_density_factor * bary_coord.x + v1_density_factor * bary_coord.y +
|
||||
v2_density_factor * bary_coord.z;
|
||||
|
||||
const float hash = noise::hash_float_to_float(bary_coord);
|
||||
if (hash > probablity) {
|
||||
if (hash > probability) {
|
||||
elimination_mask[i] = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue