Geometry Nodes: Add soft min for points node radius input

Also remove an unnecessary cast.
This commit is contained in:
Hans Goudey 2022-10-04 17:45:43 -05:00
parent 41281cc0e7
commit f9a10e7ed0
1 changed files with 2 additions and 1 deletions

View File

@ -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"));
}