fix: warehouse

This commit is contained in:
TrèsAbhi committed 2024-01-29 15:53:47 -06:00
1 parent 428a0bbad5
commit 08d4e301d2
3 files changed
+20 -17

No files matched your search

+2 -2
View File
@@ -89,9 +89,9 @@ export class ScgStream extends ScpgStream {
);
const strideBasedSize = stride * polygonGroupRaw.vertexCount;
if (verticesStream.stream.length !== strideBasedSize) {
if (verticesStream.buffer.length !== strideBasedSize) {
console.warn(
`Vertex stride mismatch; expected ${strideBasedSize}, got ${verticesStream.stream.length}; skipping...`,
`Vertex stride mismatch; expected ${strideBasedSize}, got ${verticesStream.buffer.length}; skipping...`,
);
return;