fix ArrayWriter.skip()

This commit is contained in:
Stewart Allen 2021-08-29 15:33:07 -04:00
commit 959fd31d01
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,7 @@ self.ArrayWriter = class ArrayWriter {
}
skip(len) {
this.pos += len;
this.writeBytes(new Array(len).fill(0), len);
return this.pos;
}

View file

@ -122,7 +122,6 @@
}
let preview1 = [];
let pdata = SLA.previewLarge.data;
console.log({pdata});
for (let x=0; x<290; x++) {
for (let y=0; y<290; y++) {
let p = (x * 290 + y) * 4;