fix(furni): generate scale 32 from bundles with .png frame keys
resolveNitroFrame now matches spritesheet frame keys that carry a .png suffix or namespaced naming, and isScale/scaleName preserve that suffix. Broken source sprites (missing frames or references to icon artwork) are skipped and reported instead of aborting the whole generation, and the studio UI surfaces the skipped count.
This commit is contained in:
1 parent
0842788a28
commit
4d720ee03c
5 files changed
+119
-29
No files matched your search
@@ -73,6 +73,7 @@ export const POST = withAdmin(
|
||||
before: generated.before,
|
||||
after: generated.after,
|
||||
count: generated.count,
|
||||
skipped: generated.skipped,
|
||||
});
|
||||
await fs.mkdir(backupDir, { recursive: true });
|
||||
const backupFile = path.join(
|
||||
@@ -97,6 +98,7 @@ export const POST = withAdmin(
|
||||
hash: hash(generated.bundle),
|
||||
backupHash: originalHash,
|
||||
metadata: parseNitroBundle(generated.bundle).json,
|
||||
skipped: generated.skipped,
|
||||
});
|
||||
});
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user