Fix: Curve to Points node has wrong field interface status

In 7536abbe16 changes make possible to input field as Count field.
But changes of declaration probably was forgotten. So now this input
can take field and node will be work. But input link was red. This
patch resolves this issue.

Differential Revision: https://developer.blender.org/D17131
This commit is contained in:
Iliya Katueshenock 2023-01-26 13:01:03 -06:00 committed by Hans Goudey
parent d6c9cd445c
commit 9a4c54e8b0
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ static void node_declare(NodeDeclarationBuilder &b)
b.add_input<decl::Int>(N_("Count"))
.default_value(10)
.min(2)
.field_on_all()
.max(100000)
.make_available(
[](bNode &node) { node_storage(node).mode = GEO_NODE_CURVE_RESAMPLE_COUNT; });