Skip to content

Commit

Permalink
fix: texture wrap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shahe.hs committed Jul 24, 2023
1 parent e34cb6a commit 22c9993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loader/src/gltf/parser/GLTFTextureParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 22c9993

Please sign in to comment.