Fix image loading and remove resolve_empty_stacks() function (#1746)

* Fix Image loading and remove `resolve_empty_stacks()`

* Revert noise pattern change

* Add todo comment
This commit is contained in:
Dennis Kobert
2024-05-08 01:31:41 -07:00
committed by GitHub
parent 244c8ad10a
commit 1bfbe306be
3 changed files with 67 additions and 45 deletions
@@ -10,7 +10,6 @@ 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);