Skip to content

Commit

Permalink
fix: promise
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong committed Jul 7, 2023
2 parents 85c4220 + 0f9ed26 commit 4e1b7b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/loader/src/gltf/parser/GLTFTextureParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ export class GLTFTextureParser extends GLTFParser {
}
}

return Promise.all([texture]).then((textures) => {
const texture = textures[0];
return Promise.resolve(texture).then((texture) => {
GLTFParser.executeExtensionsAdditiveAndParse(extensions, context, texture, textureInfo);
return texture;
});
Expand Down

0 comments on commit 4e1b7b2

Please sign in to comment.