remove console log and fix undefined ref error

This commit is contained in:
bakedpotatolord 2025-07-19 09:43:19 -06:00
commit 702d14a176

View file

@ -20,7 +20,7 @@ export function selectHelical() {
alert = api.show.alert("[esc] cancels surface selection");
for (let [wid, arr] of Object.entries(cylinders)) {
let widget = api.widgets.forid(wid);
if (widget && arr.length)
if (widget && arr?.length)
for (let faceid of arr) {
CAM.cylinderToggle(widget, faceid, (faceids) => {
// cylinders[widget.id] = faceids;
@ -41,7 +41,6 @@ export function selectHelical() {
console.log( error );
return;
}
console.log( faces );
cylinders[widget.id] = faces;
});
};