From be33ea5dd1e79e51fbe79fcf4a2d9357e29047b2 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 28 Jun 2024 09:25:07 +0300 Subject: [PATCH] replace primitive to object 3d in model item --- components/model/item.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/model/item.vue b/components/model/item.vue index b03bc64..fcb82f7 100644 --- a/components/model/item.vue +++ b/components/model/item.vue @@ -37,7 +37,7 @@ type vectorType = 'x' | 'y' | 'z'; onLoop(() => { if (model.value && target.value) { axis.forEach(element => { - if(target.value) { + if (target.value) { const point = model.value.position[element.axis] let step = stepbase * target.value[element.axis as vectorType] if (step !== 0) { @@ -60,10 +60,6 @@ watch(props, () => { \ No newline at end of file