feat: include size 32 (catalog icon) sprites in nitro bundles

The SWF-to-Nitro converter previously dropped the size 32 visualization
and any sprite image whose name contained '_32_', so bundles lacked the
small/catalog render size. Keep them so each furniture bundle renders
correctly at every scale the client requests.

- xml-processor: stop skipping visualization size === 32
- index.ts: stop excluding '_32_' sprite assets/images from the sheet
This commit is contained in:
openhands
2026-08-22 12:49:13 +02:00
parent 53db4a858b
commit 2996ae3ab0
2 changed files with 6 additions and 10 deletions
+3 -2
View File
@@ -426,8 +426,9 @@ export function processVisualization(xml: string): NitroVisualization[] {
for (const viz of findChildren(graphics, "visualization")) {
const size = parseInt(viz.attrs.size || "64", 10);
// Skip size 32 (small catalog icons) – only keep size 1 (special) and 64 (standard)
if (size === 32) continue;
// Keep size 1 (special), 32 (small catalog icons) and 64 (standard) so the
// bundle renders correctly at every scale the client requests.
if (size <= 0) continue;
const layerCount = parseInt(viz.attrs.layerCount || "1", 10);
const angle = parseInt(viz.attrs.angle || "45", 10);