Fix: Geometry Nodes: wrong field inferencing in Shortest Edge Paths node

Pull Request: https://projects.blender.org/blender/blender/pulls/115139
This commit is contained in:
Iliya Katueshenock
2023-11-21 14:52:43 +01:00
committed by Jacques Lucke
parent 6ba9ee88c8
commit b70d387f2a

View File

@@ -21,8 +21,8 @@ static void node_declare(NodeDeclarationBuilder &b)
{
b.add_input<decl::Bool>("End Vertex").default_value(false).hide_value().supports_field();
b.add_input<decl::Float>("Edge Cost").default_value(1.0f).hide_value().supports_field();
b.add_output<decl::Int>("Next Vertex Index").reference_pass_all();
b.add_output<decl::Float>("Total Cost").reference_pass_all();
b.add_output<decl::Int>("Next Vertex Index").field_source().reference_pass_all();
b.add_output<decl::Float>("Total Cost").field_source().reference_pass_all();
}
using VertPriority = std::pair<float, int>;