Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 14, 2023
1 parent 3755032 commit 185f11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/CameraTrajectoryVisualizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ onMounted(() => {
// Calibration
const groundLevel = appConfig.ref('groundLevel', 0)
const origin = appConfig.ref<Mat4>('tracker.origin', mat4.ident)
const origin = appConfig.ref<Mat4>('tracker.origin', mat4.identity)
// Camera coordinate system relative to the tracker
const cameraAxisY = appConfig.ref<Vec3>('tracker.yAxis', vec3.unitY)
const cameraAxisX = appConfig.ref<Vec3>('tracker.xAxis', vec3.unitX)
const cameraAxisY = appConfig.ref<Vec3>('tracker.yAxis', [0, 1, 0])
const cameraAxisX = appConfig.ref<Vec3>('tracker.xAxis', [1, 0, 0])
function setOrigin() {
origin.value = matrix.value
Expand Down
2 changes: 1 addition & 1 deletion src/stores/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 185f11b

Please sign in to comment.