[Bf-blender-cvs] [c528c51c2e5] temp-geometry-nodes-distribute-points-cleanup: Fix critical bug

Dalai Felinto noreply at git.blender.org
Fri Dec 11 12:32:50 CET 2020


Commit: c528c51c2e54d7f3d07c311655eb27e85f77f4f3
Author: Dalai Felinto
Date:   Fri Dec 11 12:21:21 2020 +0100
Branches: temp-geometry-nodes-distribute-points-cleanup
https://developer.blender.org/rBc528c51c2e54d7f3d07c311655eb27e85f77f4f3

Fix critical bug

The function was weighting the wrong point

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
index e5ea92f3a1d..8c7a29262c7 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
@@ -116,7 +116,7 @@ static void points_distance_weight_calculate(std::vector<float> *weights,
 
     /* In the first pass we just the weights. */
     if (heap == nullptr) {
-      weights->data()[neighbor_point_id] += weight_influence;
+      weights->data()[point_id] += weight_influence;
     }
     /* When we run again we need to update the weights and the heap. */
     else {



More information about the Bf-blender-cvs mailing list