enable lathe for all. disable lathe ops when switching to non-indexed mode
This commit is contained in:
parent
e1c1da746e
commit
3916ce8391
2 changed files with 3 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue