Commit: f9a10e7ed039f5394e1965709104c441c8472c5e
Author: Hans Goudey
Date:   Tue Oct 4 17:45:43 2022 -0500
Branches: master
https://developer.blender.org/rBf9a10e7ed039f5394e1965709104c441c8472c5e

Geometry Nodes: Add soft min for points node radius input

Also remove an unnecessary cast.

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_points.cc 
b/source/blender/nodes/geometry/nodes/node_geo_points.cc
index 29af45caf9e..dcbe176b384 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_points.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_points.cc
@@ -20,9 +20,10 @@ static void node_declare(NodeDeclarationBuilder &b)
       .default_value(float3(0.0f))
       .description(N_("The positions of the new points"));
   b.add_input<decl::Float>(N_("Radius"))
+      .min(0.0f)
+      .default_value(0.1f)
       .supports_field()
       .subtype(PROP_DISTANCE)
-      .default_value(float(0.1f))
       .description(N_("The radii of the new points"));
   b.add_output<decl::Geometry>(N_("Geometry"));
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to