test build
Deploy / build_and_push_images (push) Successful in 1m28s Details
Deploy / deploy_to_server_dev (push) Successful in 31s Details

This commit is contained in:
Kseninia Mikhaylova 2024-07-25 15:28:54 +03:00
parent 7d18de8981
commit eda9ddd921
1 changed files with 8 additions and 4 deletions

View File

@ -34,11 +34,15 @@ onLoop(() => {
let step = stepbase * target.value[element.axis as vectorType]
// console.log({ point, step })
if (step !== 0) {
// if (Math.abs(point) >= Math.abs(target.value[element.axis as vectorType])) {
// step = 0
// }
if (Math.abs(point) >= Math.abs(target.value[element.axis as vectorType])) {
step = 0
}
if (model.value !== undefined && model.value[element.func] !== undefined) {
model.value[element.func](step)
try {
model.value[element.func](step)
} catch (error) {
console.log(error)
}
}
}
}