Browse Source

Loader.createMaterial: Delete emissive for MeshBasicMaterial. See #7635.

Mr.doob 9 years ago
parent
commit
6817765c08
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/loaders/Loader.js

+ 2 - 0
src/loaders/Loader.js

@@ -247,7 +247,9 @@ THREE.Loader.prototype = {
 
 
 			}
 			}
 
 
+			if ( json.type === 'MeshBasicMaterial' ) delete json.emissive;
 			if ( json.type !== 'MeshPhongMaterial' ) delete json.specular;
 			if ( json.type !== 'MeshPhongMaterial' ) delete json.specular;
+
 			if ( json.opacity < 1 ) json.transparent = true;
 			if ( json.opacity < 1 ) json.transparent = true;
 
 
 			materialLoader.setTextures( textures );
 			materialLoader.setTextures( textures );