Fix #128997: wrong evaluation of outputs in the Index of Nearest node

Pull Request: https://projects.blender.org/blender/blender/pulls/128998
This commit is contained in:
Arye Ramaty
2024-10-17 23:47:13 +02:00
committed by Philipp Oeser
parent 3acecd49de
commit ddc3b2b737
@@ -16,8 +16,9 @@ static void node_declare(NodeDeclarationBuilder &b)
b.add_input<decl::Vector>("Position").implicit_field(implicit_field_inputs::position);
b.add_input<decl::Int>("Group ID").supports_field().hide_value();
b.add_output<decl::Int>("Index").field_source().description("Index of nearest element");
b.add_output<decl::Bool>("Has Neighbor").field_source();
b.add_output<decl::Int>("Index").field_source_reference_all().description(
"Index of nearest element");
b.add_output<decl::Bool>("Has Neighbor").field_source_reference_all();
}
static KDTree_3d *build_kdtree(const Span<float3> positions, const IndexMask &mask)