From e870d5ee92df4ec60f225a140c4e7fe042f987d6 Mon Sep 17 00:00:00 2001 From: aarizona Date: Tue, 24 Sep 2024 21:11:24 +0300 Subject: [PATCH] camera movve part --- components/calc/values.vue | 17 +++++++++++++---- components/dropdown/picker.vue | 13 +++++++------ 2 files changed, 20 insertions(+), 10 deletions(-) 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) + } +})