rename passthrough

This commit is contained in:
Adam
2025-07-15 12:14:12 -07:00
parent faf8dedb1b
commit 84b3c90dc8
2 changed files with 4 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
let custom = vec![
// TODO: Auto-generate this from its proto node macro
DocumentNodeDefinition {
identifier: "Pass Through",
identifier: "Passthrough",
category: "General",
node_template: NodeTemplate {
document_node: DocumentNode {
@@ -2071,7 +2071,7 @@ fn static_node_properties() -> NodeProperties {
map.insert("sample_polyline_properties".to_string(), Box::new(node_properties::sample_polyline_properties));
map.insert(
"pass_through_properties".to_string(),
Box::new(|_node_id, _context| node_properties::string_properties("The Pass Through node can be used to organize wires.")),
Box::new(|_node_id, _context| node_properties::string_properties("The Passthrough node can be used to organize wires.")),
);
map.insert(
"monitor_properties".to_string(),

View File

@@ -54,8 +54,8 @@
// Quick and dirty hack to alias "Layer" to "Merge" in the search
const layerAliasMatch = node.name === "Merge" && "layer".includes(term);
// Alias "Identity" to "Pass Through"
const identityAliasMatch = node.name === "Pass Through" && "identity".includes(term);
// Alias "Identity" to "Passthrough"
const identityAliasMatch = node.name === "Passthrough" && "identity".includes(term);
return nameMatch || categoryMatch || layerAliasMatch || identityAliasMatch;
});