diff --git a/src/index.ts b/src/index.ts index b64e5e6..bc1ced2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -62,7 +62,7 @@ async function setupViewer(){ await viewer.addPlugin(CanvasSnipperPlugin) // Import and add a GLB file. - await viewer.load("./assets/classic-watch.glb") + await manager.addFromPath("./assets/classic-watch.glb") // Load an environment map if not set in the glb file // await viewer.setEnvironmentMap("./assets/environment.hdr");