[Bf-blender-cvs] [75489b5887c] master: Geometry Nodes: tweak Volume to Mesh threshold declaration

Jacques Lucke noreply at git.blender.org
Fri Jun 17 13:34:00 CEST 2022


Commit: 75489b5887cd270b8076046606baf6daeba3d259
Author: Jacques Lucke
Date:   Fri Jun 17 13:18:48 2022 +0200
Branches: master
https://developer.blender.org/rB75489b5887cd270b8076046606baf6daeba3d259

Geometry Nodes: tweak Volume to Mesh threshold declaration

* Remove the minimum value, because that doesn't make sense in general.
* Add a description.

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc
index e5827c24320..8770fa2b74b 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc
@@ -41,7 +41,9 @@ static void node_declare(NodeDeclarationBuilder &b)
       .make_available([](bNode &node) {
         node_storage(node).resolution_mode = VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_AMOUNT;
       });
-  b.add_input<decl::Float>(N_("Threshold")).default_value(0.1f).min(0.0f);
+  b.add_input<decl::Float>(N_("Threshold"))
+      .default_value(0.1f)
+      .description(N_("Values larger than the threshold are inside the generated mesh"));
   b.add_input<decl::Float>(N_("Adaptivity")).min(0.0f).max(1.0f).subtype(PROP_FACTOR);
   b.add_output<decl::Geometry>(N_("Mesh"));
 }



More information about the Bf-blender-cvs mailing list