Skip to content

Commit 524f2f6

Browse files
author
Simon he
committed
chore: update
1 parent f25d9e7 commit 524f2f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sThree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ export function sThree(container: HTMLElement | string, options: SThreeOptions):
488488
else { gltfLoader = gltfLoaderMap.get('gltf') }
489489
if (dracoLoader)
490490
gltfLoader.setDRACOLoader(dracoLoader)
491+
gltfLoader.setCrossOrigin('Anonymous')
491492
gltfLoader.load(url, (gltf: GLTFLoader) => {
492493
resolve(gltf)
493494
callback?.(gltf)

0 commit comments

Comments
 (0)