comment out console log
This commit is contained in:
parent
5e725b0575
commit
d2e502d763
1 changed files with 5 additions and 5 deletions
|
|
@ -401,7 +401,8 @@ CAM.init = function(kiri, api) {
|
||||||
|
|
||||||
func.opAddDrill = () => {
|
func.opAddDrill = () => {
|
||||||
let rec = popOp.drill.new();
|
let rec = popOp.drill.new();
|
||||||
rec.drills = { /* widget.id: [ drills... ] */ };
|
console.log("drill created",rec)
|
||||||
|
rec.drills = { };
|
||||||
func.opAdd(rec);
|
func.opAdd(rec);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1245,11 +1246,10 @@ CAM.init = function(kiri, api) {
|
||||||
alert = api.show.alert("Some holes are shadowed by part and are not shown.");
|
alert = api.show.alert("Some holes are shadowed by part and are not shown.");
|
||||||
}
|
}
|
||||||
centers = centers ?? []
|
centers = centers ?? []
|
||||||
//flattened list of all hole centers and if they are selected
|
// list of all hole centers and if they are selected
|
||||||
kiri.api.widgets.for(widget => {
|
kiri.api.widgets.for(widget => {
|
||||||
const {holes} = centers.find(center=>center.id = widget.id)
|
const {holes} = centers.find(center=>center.id = widget.id)
|
||||||
|
// console.log(holes)
|
||||||
console.log(holes)
|
|
||||||
if (!holes.length) unselectHoles(holes);
|
if (!holes.length) unselectHoles(holes);
|
||||||
holes.forEach(hole => {
|
holes.forEach(hole => {
|
||||||
createHoleMesh(widget, hole)
|
createHoleMesh(widget, hole)
|
||||||
|
|
@ -1778,8 +1778,8 @@ CAM.init = function(kiri, api) {
|
||||||
lift: 'camDrillLift',
|
lift: 'camDrillLift',
|
||||||
mark: 'camDrillMark',
|
mark: 'camDrillMark',
|
||||||
thru: 'camDrillThru',
|
thru: 'camDrillThru',
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
drillOp.inputs = {
|
drillOp.inputs = {
|
||||||
tool: UC.newSelect(LANG.cc_tool, {}, "tools"),
|
tool: UC.newSelect(LANG.cc_tool, {}, "tools"),
|
||||||
sep: UC.newBlank({class:"pop-sep"}),
|
sep: UC.newBlank({class:"pop-sep"}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue