mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Refactor document node type lookup function to fix performance degradation over time (#1878)
* Refactor document_node_types function * Fix node introspection * Implement diff based type updates * Fix missing monitor nodes * Improve docs and fix warings * Fix wrongful removal of node paths * Remove code examples for non pub methodsü * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
06a409f1c5
commit
0dfddd529b
25 changed files with 460 additions and 282 deletions
|
@ -786,7 +786,7 @@ impl EditorHandle {
|
|||
let Some(transform_node_id) = modify_inputs.existing_node_id("Transform") else {
|
||||
return;
|
||||
};
|
||||
if !updated_nodes.insert(transform_node_id.clone()) {
|
||||
if !updated_nodes.insert(transform_node_id) {
|
||||
return;
|
||||
}
|
||||
let Some(inputs) = modify_inputs.network_interface.network(&[]).unwrap().nodes.get(&transform_node_id).map(|node| &node.inputs) else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue