Skip to content

Commit

Permalink
fix draco pointer (#7039)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeXXik authored Oct 15, 2024
1 parent 67fdf4f commit b174ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/parsers/draco-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b174ab1

Please sign in to comment.