@@ -111,7 +111,7 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphHandlerData<'a>> for NodeGrap
111
111
responses. add ( NodeGraphMessage :: SelectedNodesSet { nodes : vec ! [ new_layer_id] } ) ;
112
112
}
113
113
NodeGraphMessage :: AddImport => {
114
- network_interface. add_import ( graph_craft:: document:: value:: TaggedValue :: None , true , -1 , "" , breadcrumb_network_path) ;
114
+ network_interface. add_import ( graph_craft:: document:: value:: TaggedValue :: None , true , -1 , "" , "" , breadcrumb_network_path) ;
115
115
responses. add ( NodeGraphMessage :: SendGraph ) ;
116
116
}
117
117
NodeGraphMessage :: AddExport => {
@@ -2236,8 +2236,8 @@ impl NodeGraphMessageHandler {
2236
2236
data_type : FrontendGraphDataType :: displayed_type ( & input. ty , & input. type_source ) ,
2237
2237
resolved_type : Some ( format ! ( "{:?} from {:?}" , & input. ty, input. type_source) ) ,
2238
2238
valid_types : input. valid_types . iter ( ) . map ( |ty| ty. to_string ( ) ) . collect ( ) ,
2239
- name : input. name . unwrap_or_else ( || input. ty . nested_type ( ) . to_string ( ) ) ,
2240
- description : input. description . unwrap_or_default ( ) ,
2239
+ name : input. input_name . unwrap_or_else ( || input. ty . nested_type ( ) . to_string ( ) ) ,
2240
+ description : input. input_description . unwrap_or_default ( ) ,
2241
2241
connected_to : input. output_connector ,
2242
2242
} )
2243
2243
} ) ;
@@ -2546,8 +2546,8 @@ impl NodeGraphMessageHandler {
2546
2546
2547
2547
#[ derive( Default ) ]
2548
2548
struct InputLookup {
2549
- name : Option < String > ,
2550
- description : Option < String > ,
2549
+ input_name : Option < String > ,
2550
+ input_description : Option < String > ,
2551
2551
ty : Type ,
2552
2552
type_source : TypeSource ,
2553
2553
valid_types : Vec < Type > ,
@@ -2574,20 +2574,17 @@ fn frontend_inputs_lookup(breadcrumb_network_path: &[NodeId], network_interface:
2574
2574
}
2575
2575
2576
2576
// Get the name from the metadata here (since it also requires a reference to the `network_interface`)
2577
- let name = network_interface
2578
- . input_name ( & node_id, index, breadcrumb_network_path)
2577
+ let input_name = network_interface
2578
+ . input_name ( node_id, index, breadcrumb_network_path)
2579
2579
. filter ( |s| !s. is_empty ( ) )
2580
2580
. map ( |name| name. to_string ( ) ) ;
2581
- let description = network_interface
2582
- . input_description ( & node_id, index, breadcrumb_network_path)
2583
- . filter ( |s| !s. is_empty ( ) )
2584
- . map ( |description| description. to_string ( ) ) ;
2581
+ let input_description = network_interface. input_description ( node_id, index, breadcrumb_network_path) . map ( |description| description. to_string ( ) ) ;
2585
2582
// Get the output connector that feeds into this input (done here as well for simplicity)
2586
2583
let connector = OutputConnector :: from_input ( input) ;
2587
2584
2588
2585
inputs. push ( Some ( InputLookup {
2589
- name ,
2590
- description ,
2586
+ input_name ,
2587
+ input_description ,
2591
2588
output_connector : connector,
2592
2589
..Default :: default ( )
2593
2590
} ) ) ;
0 commit comments