remove console log and fix undefined ref error
This commit is contained in:
parent
99ba02900c
commit
702d14a176
1 changed files with 1 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ export function selectHelical() {
|
||||||
alert = api.show.alert("[esc] cancels surface selection");
|
alert = api.show.alert("[esc] cancels surface selection");
|
||||||
for (let [wid, arr] of Object.entries(cylinders)) {
|
for (let [wid, arr] of Object.entries(cylinders)) {
|
||||||
let widget = api.widgets.forid(wid);
|
let widget = api.widgets.forid(wid);
|
||||||
if (widget && arr.length)
|
if (widget && arr?.length)
|
||||||
for (let faceid of arr) {
|
for (let faceid of arr) {
|
||||||
CAM.cylinderToggle(widget, faceid, (faceids) => {
|
CAM.cylinderToggle(widget, faceid, (faceids) => {
|
||||||
// cylinders[widget.id] = faceids;
|
// cylinders[widget.id] = faceids;
|
||||||
|
|
@ -41,7 +41,6 @@ export function selectHelical() {
|
||||||
console.log( error );
|
console.log( error );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log( faces );
|
|
||||||
cylinders[widget.id] = faces;
|
cylinders[widget.id] = faces;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue