mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 11:08:12 +08:00
Fix "Failed to execute" dialog showing up at times (#1196)
[𝘀𝗽𝗿] initial version Created using spr 1.3.4
This commit is contained in:
@@ -54,7 +54,9 @@ impl DynamicExecutor {
|
|||||||
let mut orphans = self.tree.update(proto_network, &self.typing_context)?;
|
let mut orphans = self.tree.update(proto_network, &self.typing_context)?;
|
||||||
core::mem::swap(&mut self.orphaned_nodes, &mut orphans);
|
core::mem::swap(&mut self.orphaned_nodes, &mut orphans);
|
||||||
for node_id in orphans {
|
for node_id in orphans {
|
||||||
self.tree.free_node(node_id)
|
if self.orphaned_nodes.contains(&node_id) {
|
||||||
|
self.tree.free_node(node_id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user