I think flatten could be done 1 of 3 ways.
- Flatten all layers.
- Flatten only visible layers
- Flatten selected layers.
I was saying currently in code (if im reading it correctly) the way flatten works is by iterating over each frame in the image and writing each cell the the new flattened layer.
I was wondering if it would be simpler to implement this feature as “flatten by visible layers” and then iterate over each layer, skipping the ones that aren’t visible and then applying the frame/cell logic.
But now that im thinking about it, it sounds like it would be better to just do it the current way and check if the frame is on a visible layer or not (if thats possible).
I think it’s important to realize that merge down and flatten behave differently. (If not intentionally then its a “feature” (bug))
Hope that made sense. If not disregard my ramblings and think of if flatten by visible layer would be a good feature.