mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 09:08:12 +08:00
Remove explicit empty stack nodes (#1445)
* Remove explicit empty stack nodes * Code review stylistic simplifications --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
ceb2f4c13f
commit
380bc19b09
@@ -10,6 +10,7 @@ pub struct Compiler {}
|
||||
impl Compiler {
|
||||
pub fn compile(&self, mut network: NodeNetwork) -> Result<impl Iterator<Item = ProtoNetwork>, String> {
|
||||
println!("flattening");
|
||||
network.resolve_empty_stacks();
|
||||
let node_ids = network.nodes.keys().copied().collect::<Vec<_>>();
|
||||
for id in node_ids {
|
||||
network.flatten(id);
|
||||
|
||||
Reference in New Issue
Block a user