[Bf-blender-cvs] [c0b6aeeca79] master: Cleanup: fix source typo

Brecht Van Lommel noreply at git.blender.org
Mon Aug 8 16:18:36 CEST 2022


Commit: c0b6aeeca7981e13e992c1a1e456ff7b1eb5780d
Author: Brecht Van Lommel
Date:   Mon Aug 8 15:24:58 2022 +0200
Branches: master
https://developer.blender.org/rBc0b6aeeca7981e13e992c1a1e456ff7b1eb5780d

Cleanup: fix source typo

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D15630

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

M	source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc b/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc
index cfb9cbf7e24..cf29c752257 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc
@@ -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;
     }
   }



More information about the Bf-blender-cvs mailing list