Skip to content

Commit

Permalink
fix: promise error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong committed Jul 7, 2023
1 parent 48c8418 commit 642f25e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/loader/src/gltf/parser/GLTFBufferParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,11 @@ export class GLTFBufferParser extends GLTFParser {
});
// If the textures are all urls, process `GLTFBufferParser` and `GLTFTextureParser` pipelines in parallel.
for (let i in textures) {
if (images[textures[i].source].uri) {
if (!images[textures[i].source].uri) {
return buffersPromise;
}
}
context.buffersPromise = buffersPromise;
return buffersPromise;
});
}
}
Expand Down

0 comments on commit 642f25e

Please sign in to comment.