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:
openhands
2026-09-12 12:46:17 +02:00
parent 0842788a28
commit 4d720ee03c
5 changed files with 119 additions and 29 deletions
@@ -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 {