diff --git a/src/framework/parsers/draco-worker.js b/src/framework/parsers/draco-worker.js index 8674cf744f3..3f91217113f 100644 --- a/src/framework/parsers/draco-worker.js +++ b/src/framework/parsers/draco-worker.js @@ -128,7 +128,7 @@ function DracoWorker(jsUrl, wasmUrl) { const mesh = new draco.Mesh(); const status = decoder.DecodeBufferToMesh(buffer, mesh); - if (!status || !status.ok() || mesh.ptr === 0) { + if (!status || !status.ok() || draco.getPointer(mesh) === 0) { result.error = 'Failed to decode draco asset'; return result; }