change how overrides are seeded
This commit is contained in:
parent
09066f00c0
commit
601caf1f61
1 changed files with 8 additions and 6 deletions
|
|
@ -1481,8 +1481,8 @@ CAM.init = function(kiri, api) {
|
||||||
revbone: 'camTraceDogbone',
|
revbone: 'camTraceDogbone',
|
||||||
merge: 'camTraceMerge',
|
merge: 'camTraceMerge',
|
||||||
select: 'camTraceMode',
|
select: 'camTraceMode',
|
||||||
ov_topz: 'camTraceZTop',
|
ov_topz: 0,
|
||||||
ov_botz: 'camTraceZBottom',
|
ov_botz: 0,
|
||||||
ov_conv: '~camConventional',
|
ov_conv: '~camConventional',
|
||||||
}).inputs = {
|
}).inputs = {
|
||||||
tool: UC.newSelect(LANG.cc_tool, {}, "tools"),
|
tool: UC.newSelect(LANG.cc_tool, {}, "tools"),
|
||||||
|
|
@ -1526,8 +1526,8 @@ CAM.init = function(kiri, api) {
|
||||||
contour: 'camPocketContour',
|
contour: 'camPocketContour',
|
||||||
engrave: 'camPocketEngrave',
|
engrave: 'camPocketEngrave',
|
||||||
outline: 'camPocketOutline',
|
outline: 'camPocketOutline',
|
||||||
ov_topz: 'camPocketZTop',
|
ov_topz: 0,
|
||||||
ov_botz: 'camPocketZBottom',
|
ov_botz: 0,
|
||||||
ov_conv: '~camConventional',
|
ov_conv: '~camConventional',
|
||||||
tolerance: 'camTolerance',
|
tolerance: 'camTolerance',
|
||||||
}).inputs = {
|
}).inputs = {
|
||||||
|
|
@ -1708,7 +1708,7 @@ function createPopOp(type, map) {
|
||||||
API.util.ui2rec(op.rec, op.inputs);
|
API.util.ui2rec(op.rec, op.inputs);
|
||||||
for (let [key, val] of Object.entries(op.rec)) {
|
for (let [key, val] of Object.entries(op.rec)) {
|
||||||
let saveTo = map[key];
|
let saveTo = map[key];
|
||||||
if (saveTo && !key.startsWith("~")) {
|
if (saveTo && typeof(key) === 'string' && !key.startsWith("~")) {
|
||||||
current.process[saveTo] = val;
|
current.process[saveTo] = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1718,7 +1718,9 @@ function createPopOp(type, map) {
|
||||||
new: () => {
|
new: () => {
|
||||||
let rec = { type };
|
let rec = { type };
|
||||||
for (let [key, src] of Object.entries(map)) {
|
for (let [key, src] of Object.entries(map)) {
|
||||||
rec[key] = current.process[src.replace('~','')];
|
rec[key] = typeof(src) === 'string'
|
||||||
|
? current.process[src.replace('~','')]
|
||||||
|
: src;
|
||||||
}
|
}
|
||||||
return rec;
|
return rec;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue