From f45879ed7b826eb6049e14069120f0c2e3192f6b Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Tue, 17 Aug 2021 16:31:42 +0800 Subject: [PATCH] fix: KHR_techniques_webgl parse texture bug --- src/loader/GLTFExtensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loader/GLTFExtensions.js b/src/loader/GLTFExtensions.js index 53b770c7..c6c8f189 100644 --- a/src/loader/GLTFExtensions.js +++ b/src/loader/GLTFExtensions.js @@ -339,7 +339,7 @@ export const KHR_techniques_webgl = { } if (imageIndex !== undefined) { - map[textureInfos[name].index] = true; + map[imageIndex] = true; } } }