diff --git a/src/scene.js b/src/scene.js index 4928184b1c03f0e5ba6afde63847f9dcdee295fb..0b6cb5a90b66ed4e67f217292403b8e5fb109361 100644 --- a/src/scene.js +++ b/src/scene.js @@ -110,7 +110,9 @@ const onReady = async () => { const previewCamera = gltfEl.object3D.getObjectByName("scene-preview-camera"); if (previewCamera) { - camera.object3D.applyMatrix(previewCamera.matrixWorld); + camera.object3D.position.copy(previewCamera.position); + camera.object3D.rotation.copy(previewCamera.rotation); + camera.object3D.updateMatrix(); } camera.setAttribute("scene-preview-camera", "");