spoint 0.1.67 → 0.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/anim-lib.glb +0 -0
- package/client/animation.js +1 -1
- package/package.json +1 -1
|
Binary file
|
package/client/animation.js
CHANGED
|
@@ -128,7 +128,7 @@ let _normalizedCache = null
|
|
|
128
128
|
|
|
129
129
|
export function preloadAnimationLibrary() {
|
|
130
130
|
if (_gltfPromise) return _gltfPromise
|
|
131
|
-
_gltfPromise = new GLTFLoader().loadAsync('/anim-lib.glb')
|
|
131
|
+
_gltfPromise = new GLTFLoader().loadAsync('/anim-lib.glb').catch(err => { console.warn('[anim] Failed to load animation library:', err.message); return { scene: new THREE.Scene(), animations: [] } })
|
|
132
132
|
return _gltfPromise
|
|
133
133
|
}
|
|
134
134
|
|