[Bf-blender-cvs] [ca37d8485c7] blender-v2.93-release: Fix T87217: improve impact of seed in point distribute node

Jacques Lucke noreply at git.blender.org
Fri Apr 16 11:43:27 CEST 2021


Commit: ca37d8485c73ebc050e49c6bce2f73756c7578e3
Author: Jacques Lucke
Date:   Fri Apr 16 11:43:16 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBca37d8485c73ebc050e49c6bce2f73756c7578e3

Fix T87217: improve impact of seed in point distribute node

Incrementing the seed just by one did not mix things up enough.

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
index 026455cbc95..74cca8a2f3c 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
@@ -622,7 +622,7 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params)
   const GeometryNodePointDistributeMode distribute_method =
       static_cast<GeometryNodePointDistributeMode>(params.node().custom1);
 
-  const int seed = params.get_input<int>("Seed");
+  const int seed = params.get_input<int>("Seed") * 5383843;
   const float density = params.extract_input<float>("Density Max");
   const std::string density_attribute_name = params.extract_input<std::string>(
       "Density Attribute");



More information about the Bf-blender-cvs mailing list