diff --git a/src/App.vue b/src/App.vue index 57783ec..0763022 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,10 +63,8 @@ let modelViewerInfo: Ref = ref(null); diff --git a/src/OrientationGizmo.vue b/src/OrientationGizmo.vue index 58f68a7..526d489 100644 --- a/src/OrientationGizmo.vue +++ b/src/OrientationGizmo.vue @@ -40,6 +40,10 @@ function createGizmo(expectedParent: HTMLElement, scene: ModelScene): HTMLElemen //console.log("New camera position", newLookFrom) scene.getCamera().position.copy(newLookFrom); scene.getCamera().lookAt(lookAt); + if ((scene as any).__perspectiveCamera) { // HACK: Make the hacky ortho also work + (scene as any).__perspectiveCamera.position.copy(newLookFrom); + (scene as any).__perspectiveCamera.lookAt(lookAt); + } scene.queueRender(); } return gizmo; diff --git a/src/Tools.vue b/src/Tools.vue index d3b54ac..5e15a54 100644 --- a/src/Tools.vue +++ b/src/Tools.vue @@ -1,21 +1,53 @@