Explorar o código

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

Clark Lavery %!s(int64=8) %!d(string=hai) anos
pai
achega
2ad95cce8b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) );
 				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 );
 					materialParams.normalScale = new THREE.Vector2( material.normalTexture.scale, material.normalTexture.scale );