fix async wait for shadow gen
This commit is contained in:
parent
50f433a0d3
commit
83d51f86be
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ CAM.slice = async function(settings, widget, onupdate, ondone) {
|
||||||
// let points = base.verticesToPoints();
|
// let points = base.verticesToPoints();
|
||||||
state.slicer = new kiri.cam_slicer(widget);
|
state.slicer = new kiri.cam_slicer(widget);
|
||||||
shadows = {};
|
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));
|
// console.log('reshadow', progress.round(3));
|
||||||
});
|
});
|
||||||
widget.topo = undefined;
|
widget.topo = undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue