[FEAT] Show first shown layer in project list
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user