fix async wait for shadow gen

This commit is contained in:
Stewart Allen 2023-01-21 18:09:07 -05:00
commit 83d51f86be

View file

@ -244,7 +244,7 @@ CAM.slice = async function(settings, widget, onupdate, ondone) {
// let points = base.verticesToPoints();
state.slicer = new kiri.cam_slicer(widget);
shadows = {};
new CAM.OPS.shadow(state, { type: "shadow", silent: true }).slice(progress => {
await new CAM.OPS.shadow(state, { type: "shadow", silent: true }).slice(progress => {
// console.log('reshadow', progress.round(3));
});
widget.topo = undefined;