Fix: Geometry Nodes: Shortest Edge Paths node field interfacing #115139

Merged
Jacques Lucke merged 3 commits from mod_moder/blender:tmp_fix_shortest_edge_paths_field_interfacing into main 2023-11-21 14:52:53 +01:00
1 changed files with 2 additions and 2 deletions

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();
mod_moder marked this conversation as resolved Outdated

Actually, this might need .field_source().reference_pass_all() since the output field still needs all anonymous attributes referenced by the inputs.

Actually, this might need `.field_source().reference_pass_all()` since the output field still needs all anonymous attributes referenced by the inputs.
b.add_output<decl::Float>("Total Cost").field_source().reference_pass_all();
}
using VertPriority = std::pair<float, int>;