Skip to content

Commit

Permalink
fix: filterMode 解析出错
Browse files Browse the repository at this point in the history
  • Loading branch information
shahe.hs committed Jul 24, 2023
1 parent 22c9993 commit d44dda5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loader/src/gltf/parser/GLTFTextureParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class GLTFTextureParser extends GLTFParser {
private _parseSampler(texture: Texture2D, samplerInfo: ISamplerInfo): void {
const { filterMode, wrapModeU, wrapModeV } = samplerInfo;

if (filterMode) {
if (filterMode !== undefined) {
texture.filterMode = filterMode;
}

Expand Down

0 comments on commit d44dda5

Please sign in to comment.