From 185f11b3da2ffca7aff3b9d023bb03f35a519f1d Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Sun, 15 Oct 2023 00:56:52 +0900 Subject: [PATCH] Update --- src/components/CameraTrajectoryVisualizer.vue | 6 +++--- src/stores/project.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/CameraTrajectoryVisualizer.vue b/src/components/CameraTrajectoryVisualizer.vue index 466ddb2..7bfb8c1 100644 --- a/src/components/CameraTrajectoryVisualizer.vue +++ b/src/components/CameraTrajectoryVisualizer.vue @@ -73,11 +73,11 @@ onMounted(() => { // Calibration const groundLevel = appConfig.ref('groundLevel', 0) -const origin = appConfig.ref('tracker.origin', mat4.ident) +const origin = appConfig.ref('tracker.origin', mat4.identity) // Camera coordinate system relative to the tracker -const cameraAxisY = appConfig.ref('tracker.yAxis', vec3.unitY) -const cameraAxisX = appConfig.ref('tracker.xAxis', vec3.unitX) +const cameraAxisY = appConfig.ref('tracker.yAxis', [0, 1, 0]) +const cameraAxisX = appConfig.ref('tracker.xAxis', [1, 0, 0]) function setOrigin() { origin.value = matrix.value diff --git a/src/stores/project.ts b/src/stores/project.ts index 9a7a922..08ac853 100644 --- a/src/stores/project.ts +++ b/src/stores/project.ts @@ -406,7 +406,7 @@ export const useProjectStore = defineStore('project', () => { } function shot(frame: number, layer: number): Shot | null { - return project.komas[frame].shots?.at(layer) ?? null + return project.komas[frame]?.shots?.at(layer) ?? null } function setShot(frame: number, layer: number, shot: Shot) {