Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-09-28 20:44:50 +0300
committerHans Goudey <h.goudey@me.com>2021-09-28 20:44:50 +0300
commite45ffce5fadd55ebead3fd1a89964f330baac526 (patch)
treebb3e35f4f39699b4604414161ccdd2ab1b7794f1
parentfaedfd574015b0eca0371baf02f2c7ef1d478e45 (diff)
Geometry Nodes: Use factor slider for distribution density factor
Though the factor isn't so useful to adjust by itself, and is mostly useful when used with a field connected, the slider from 0 to 1 can help to make it clear that it's just used as a multiplier for the max density after distribution. Differential Revision: https://developer.blender.org/D12654
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc1
1 files changed, 1 insertions, 0 deletions
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 f27544cbdda..1a4c5d84dbf 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
@@ -50,6 +50,7 @@ static void geo_node_point_distribute_points_on_faces_declare(NodeDeclarationBui
.default_value(1.0f)
.min(0.0f)
.max(1.0f)
+ .subtype(PROP_FACTOR)
.supports_field();
b.add_input<decl::Int>("Seed");
b.add_input<decl::Bool>("Selection").default_value(true).hide_value().supports_field();