Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix: garments-only outfits are bakeable — isBakeable predated the additive wardrobe

nirholasd27a38180ac4
diff --git a/api/_lib/bake.js b/api/_lib/bake.js
index 3b29f68d7..ff80f76ed 100644
--- a/api/_lib/bake.js
+++ b/api/_lib/bake.js
@@ -57,6 +57,9 @@ export function isBakeable(appearance) {
if (appearance.morphs && Object.keys(appearance.morphs).length > 0) return true;
if (appearance.colors && Object.keys(appearance.colors).length > 0) return true;
if (Array.isArray(appearance.hidden) && appearance.hidden.length > 0) return true;
+ // Additive catalog garments (specs/GARMENT_MANIFEST.md) bake via
+ // bake-garments.js — a garments-only outfit is absolutely bakeable.
+ if (Array.isArray(appearance.garments) && appearance.garments.length > 0) return true;
return false;
}
diff --git a/tests/avatar-bake.test.js b/tests/avatar-bake.test.js
index 696d52942..59a13008c 100644
--- a/tests/avatar-bake.test.js
+++ b/tests/avatar-bake.test.js
@@ -143,8 +143,10 @@ describe('isBakeable', () => {
expect(isBakeable({ morphs: { Smile: 0.5 } })).toBe(true);
expect(isBakeable({ colors: { outfit: '#ff0000' } })).toBe(true);
expect(isBakeable({ hidden: ['outfit'] })).toBe(true);
+ expect(isBakeable({ garments: [{ slot: 'top', id: 'oxford-shirt-white' }] })).toBe(true);
expect(isBakeable({ colors: {} })).toBe(false);
expect(isBakeable({ hidden: [] })).toBe(false);
+ expect(isBakeable({ garments: [] })).toBe(false);
});
});