Browse Source

MaterialLoader: Force add normalScale. See #7461.

Mr.doob 9 years ago
parent
commit
6517447625
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/loaders/MaterialLoader.js

+ 2 - 2
src/loaders/MaterialLoader.js

@@ -99,7 +99,7 @@ THREE.MaterialLoader.prototype = {
 		if ( json.bumpScale !== undefined ) material.bumpScale = json.bumpScale;
 
 		if ( json.normalMap !== undefined ) material.normalMap = this.getTexture( json.normalMap );
-		if ( json.normalScale ) {
+		if ( json.normalScale !== undefined ) {
 
 			var normalScale = json.normalScale;
 
@@ -111,7 +111,7 @@ THREE.MaterialLoader.prototype = {
 
 			}
 
-			material.normalScale.fromArray( normalScale );
+			material.normalScale = new THREE.Vector2().fromArray( normalScale );
 
 		}