From 642f25e413d5110b1255f76e48380432ed3bf49d Mon Sep 17 00:00:00 2001 From: zhuxudong Date: Fri, 7 Jul 2023 14:08:02 +0800 Subject: [PATCH] fix: promise error --- packages/loader/src/gltf/parser/GLTFBufferParser.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/loader/src/gltf/parser/GLTFBufferParser.ts b/packages/loader/src/gltf/parser/GLTFBufferParser.ts index 75e67ed4e7..0d89803d0d 100644 --- a/packages/loader/src/gltf/parser/GLTFBufferParser.ts +++ b/packages/loader/src/gltf/parser/GLTFBufferParser.ts @@ -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; }); } }