fix(asset): remove unbundled GLTF format from supported 3D models

This commit is contained in:
yiling
2026-10-13 11:38:25 +08:00
parent fe8d404a44
commit f3da916905
5 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -128,9 +128,7 @@ describe('getProxyType', () => {
it('should detect 3d proxyType for supported 3D models', () => {
expect(getProxyType('model/gltf-binary', 'model.glb')).toBe('3d')
expect(getProxyType('model/gltf+json', 'model.gltf')).toBe('3d')
expect(getProxyType(null, 'model.glb')).toBe('3d')
expect(getProxyType(null, 'model.gltf')).toBe('3d')
expect(getProxyType(null, 'character.fbx')).toBe('3d')
expect(getProxyType('model/obj', 'mesh.obj')).toBe('3d')
expect(getProxyType(null, 'mesh.obj')).toBe('3d')
@@ -147,5 +145,7 @@ describe('getProxyType', () => {
it('should return null for unsupported files', () => {
expect(getProxyType('application/zip', 'archive.zip')).toBeNull()
expect(getProxyType(null, 'unknown.bin')).toBeNull()
expect(getProxyType('model/gltf+json', 'model.gltf')).toBeNull()
expect(getProxyType(null, 'model.gltf')).toBeNull()
})
})