enable lathe for all. disable lathe ops when switching to non-indexed mode

This commit is contained in:
Stewart Allen 2023-02-13 23:16:21 -05:00
commit 3916ce8391
2 changed files with 3 additions and 6 deletions

View file

@ -296,9 +296,6 @@ CAM.init = function(kiri, api) {
}
return func.opAddContour(caxis);
case "lathe":
if (!settings.controller.danger) {
return;
}
let laxis = "X";
for (let op of current.process.ops) {
if (op.type === "lathe" && op.axis === "X") {
@ -508,6 +505,9 @@ CAM.init = function(kiri, api) {
indexing = false;
}
let el = $(id);
if (!isIndexed && type === 'lathe') {
rec.disabled = true;
}
if (!hasSharedArrays && (type === 'contour' || type === 'lathe')) {
rec.disabled = true;
}