Fix #140040: Curve to Points length input should be a field

This commit changes the length input of the Curve to Points node to be
a field input, allowing users to more easily set a seperate length per
curve.

Pull Request: https://projects.blender.org/blender/blender/pulls/140048
This commit is contained in:
Alaska
2025-06-12 14:53:23 +02:00
committed by Hans Goudey
parent 91684f0de4
commit 843a596b84

View File

@@ -41,6 +41,7 @@ static void node_declare(NodeDeclarationBuilder &b)
.default_value(0.1f)
.min(0.001f)
.subtype(PROP_DISTANCE)
.field_on_all()
.make_available([](bNode &node) {
node_storage(node).mode = GEO_NODE_CURVE_RESAMPLE_LENGTH;
});