From 22c99936c9aa0579c75ea36c901083ac92a012f5 Mon Sep 17 00:00:00 2001 From: "shahe.hs" Date: Mon, 24 Jul 2023 11:29:33 +0800 Subject: [PATCH] fix: texture wrap bug --- packages/loader/src/gltf/parser/GLTFTextureParser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/loader/src/gltf/parser/GLTFTextureParser.ts b/packages/loader/src/gltf/parser/GLTFTextureParser.ts index dd92351b03..82ebca1804 100644 --- a/packages/loader/src/gltf/parser/GLTFTextureParser.ts +++ b/packages/loader/src/gltf/parser/GLTFTextureParser.ts @@ -113,11 +113,11 @@ export class GLTFTextureParser extends GLTFParser { texture.filterMode = filterMode; } - if (wrapModeU) { + if (wrapModeU !== undefined) { texture.wrapModeU = wrapModeU; } - if (wrapModeV) { + if (wrapModeV !== undefined) { texture.wrapModeV = wrapModeV; } }