fix(menu): load pizza GLB at runtime when scene export has no mesh
Exported MenuScene.glb had cc0_-_pizza_salami with MeshRenderer but null materials and no glTF mesh buffers (common when Unity imported an LFS pointer). Add include/dishes standalone GLB and dishMeshFallback to GLTFLoader-inject geometry when a dish root has no meshes. Track include/dishes outside Git LFS. Made-with: Cursor
This commit is contained in:
2
Needle/MenuScene/dist/needle-app.js
vendored
2
Needle/MenuScene/dist/needle-app.js
vendored
@@ -53,7 +53,7 @@ if (!customElements.get(componentName)) {
|
||||
while(this.basePath.endsWith('/')) {
|
||||
this.basePath = this.basePath.slice(0, -1);
|
||||
}
|
||||
script.src = this.getAttribute('script-src') || `${this.basePath}/assets/index-C4yn7lK8.js`;
|
||||
script.src = this.getAttribute('script-src') || `${this.basePath}/assets/index-Fs2VLbun.js`;
|
||||
this.shadowRoot.appendChild(script);
|
||||
|
||||
this.needleEngine = document.createElement('needle-engine');
|
||||
|
||||
Reference in New Issue
Block a user