[FEAT] Show first shown layer in project list

This commit is contained in:
2026-01-02 00:31:25 +01:00
parent 9cac4e6fd8
commit b7f90e69a1

View File

@@ -189,6 +189,9 @@
// Iterate through layers to find sprites
for (const layer of project.data.layers as any[]) {
// Check if layer is visible (default to true if undefined)
if (layer.visible === false) continue;
if (layer.sprites && layer.sprites.length > 0) {
for (const sprite of layer.sprites) {
if (sprites.length < limit) {