fix png import conversion

This commit is contained in:
Stewart Allen 2022-10-30 19:50:18 -04:00
commit 4754ee9909
2 changed files with 4 additions and 1 deletions

View file

@ -1543,6 +1543,10 @@ class OpShadow extends CamOp {
progress(index / total);
}, genso: true });
if (terrain.length === 0) {
throw `invalid widget shadow`;
}
state.shadowTop = terrain[terrain.length - 1];
state.center = tshadow[0].bounds.center();
state.tshadow = tshadow; // true shadow (bottom of part)