Browse Source

Checking is normalTexture.scale !== undefined instead, in the case of 0 scale

Clark Lavery 8 years ago
parent
commit
2ad95cce8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -1613,7 +1613,7 @@ THREE.GLTFLoader = ( function () {
 
 				pending.push( parser.assignTexture( materialParams, 'normalMap', material.normalTexture.index ) );
 
-				if ( material.normalTexture.scale ) {
+				if ( material.normalTexture.scale !== undefined ) {
 
 					materialParams.normalScale = new THREE.Vector2( material.normalTexture.scale, material.normalTexture.scale );