fix png import conversion
This commit is contained in:
parent
3fb4281924
commit
4754ee9909
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ const types = {
|
|||
|
||||
png(data, file, resolve, reject) {
|
||||
load.PNG.parse(data, {
|
||||
...opt,
|
||||
done(data) {
|
||||
resolve({ mesh: data, file });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue