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:
@@ -16,6 +16,7 @@ export function NitroScale32Generator({
|
||||
before: string;
|
||||
after: string;
|
||||
count: number;
|
||||
skipped?: number;
|
||||
} | null>(null),
|
||||
[undo, setUndo] = useState<{ hash: string; backupHash: string } | null>(
|
||||
null,
|
||||
@@ -78,6 +79,12 @@ export function NitroScale32Generator({
|
||||
{preview.count} sprite entries will be added. Check positioning and
|
||||
animations in the client after saving.
|
||||
</p>
|
||||
{preview.skipped ? (
|
||||
<p className="text-sm text-destructive" role="alert">
|
||||
{preview.skipped} sprite(s) were skipped because the source bundle
|
||||
has no usable artwork for them.
|
||||
</p>
|
||||
) : null}
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
{[
|
||||
["Original 64", preview.before],
|
||||
|
||||
Reference in New Issue
Block a user