fix layer mismatch with apply free in renderer

This commit is contained in:
2025-11-22 03:15:21 -05:00
parent 1c6fc99f57
commit 140be50baa
2 changed files with 6 additions and 2 deletions

View File

@@ -97,6 +97,10 @@ impl Layers {
LayerIteratorMut::new(&mut self.vec, self.last)
}
pub fn iter_orderless_mut(&mut self) -> impl Iterator<Item = (usize, &mut Layer)> {
self.vec.iter_mut().map(|n| &mut n.data).enumerate()
}
pub fn iter(&self) -> impl Iterator<Item = (usize, &Layer)> {
self.indices().map(|i| (i, &self.vec[i].data))
}