diff --git a/components/calc/values.vue b/components/calc/values.vue index 02ac212..d9a8f6b 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -18,6 +18,7 @@ const extra_section = use_extra_section() const total_length = use_total_length() const min_length = use_min_length() const goto_cam = use_goto_camera() +const open_calc = use_open_calc() if (!pillar_color.value) { const r = Math.floor(Math.random() * predefPillarColors.length) @@ -182,6 +183,12 @@ const calc_table = computed(() => { }, ] }) + +watch(open_calc, () => { + if (Object.keys(open_calc.value).length == 0) { + goto_cam.value = new Vector3(1, 1, 1) + } +})