extra section length #53
|
@ -101,10 +101,13 @@ const changeParametres = () => {
|
||||||
if (full_sections == 0) {
|
if (full_sections == 0) {
|
||||||
length = total_length_mm - fence_length - fence_length
|
length = total_length_mm - fence_length - fence_length
|
||||||
}
|
}
|
||||||
|
if ((total_length_mm - ((full_sections * length) + (full_sections * fence_length) + fence_length)) < fence_length) {
|
||||||
|
full_sections -= 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) {
|
if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) {
|
||||||
form_state.extra_section = total_length_mm - ((full_sections * length) + (full_sections * fence_length) + fence_length + fence_length)
|
form_state.extra_section = total_length_mm - ((full_sections * length) + (full_sections * fence_length) + fence_length) - fence_length
|
||||||
} else {
|
} else {
|
||||||
form_state.extra_section = 0
|
form_state.extra_section = 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,13 @@ onLoop(() => {
|
||||||
if (Math.abs(point) >= Math.abs(target.value[element.axis as vectorType])) {
|
if (Math.abs(point) >= Math.abs(target.value[element.axis as vectorType])) {
|
||||||
step = 0
|
step = 0
|
||||||
}
|
}
|
||||||
model.value[element.func](step)
|
if (model.value !== undefined && model.value[element.func] !== undefined && model.value.__tres) {
|
||||||
|
try {
|
||||||
|
model.value[element.func](step)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('lvl 1')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue