mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 21:28:11 +08:00
rename passthrough
This commit is contained in:
@@ -85,7 +85,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
|
|||||||
let custom = vec![
|
let custom = vec![
|
||||||
// TODO: Auto-generate this from its proto node macro
|
// TODO: Auto-generate this from its proto node macro
|
||||||
DocumentNodeDefinition {
|
DocumentNodeDefinition {
|
||||||
identifier: "Pass Through",
|
identifier: "Passthrough",
|
||||||
category: "General",
|
category: "General",
|
||||||
node_template: NodeTemplate {
|
node_template: NodeTemplate {
|
||||||
document_node: DocumentNode {
|
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("sample_polyline_properties".to_string(), Box::new(node_properties::sample_polyline_properties));
|
||||||
map.insert(
|
map.insert(
|
||||||
"pass_through_properties".to_string(),
|
"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(
|
map.insert(
|
||||||
"monitor_properties".to_string(),
|
"monitor_properties".to_string(),
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
// Quick and dirty hack to alias "Layer" to "Merge" in the search
|
// Quick and dirty hack to alias "Layer" to "Merge" in the search
|
||||||
const layerAliasMatch = node.name === "Merge" && "layer".includes(term);
|
const layerAliasMatch = node.name === "Merge" && "layer".includes(term);
|
||||||
|
|
||||||
// Alias "Identity" to "Pass Through"
|
// Alias "Identity" to "Passthrough"
|
||||||
const identityAliasMatch = node.name === "Pass Through" && "identity".includes(term);
|
const identityAliasMatch = node.name === "Passthrough" && "identity".includes(term);
|
||||||
|
|
||||||
return nameMatch || categoryMatch || layerAliasMatch || identityAliasMatch;
|
return nameMatch || categoryMatch || layerAliasMatch || identityAliasMatch;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user