Browse Source

MultiMaterial cleanup

SUNAG 9 years ago
parent
commit
737530a5ea
3 changed files with 5 additions and 5 deletions
  1. 4 0
      src/Three.Legacy.js
  2. 0 4
      src/materials/MultiMaterial.js
  3. 1 1
      src/renderers/WebGLRenderer.js

+ 4 - 0
src/Three.Legacy.js

@@ -727,3 +727,7 @@ THREE.TextGeometry = function () {
 	console.error( 'THREE.FontUtils has been moved to /examples/js/utils/FontUtils.js' );
 
 };
+
+//
+
+THREE.MeshFaceMaterial = THREE.MultiMaterial;

+ 0 - 4
src/materials/MultiMaterial.js

@@ -65,7 +65,3 @@ THREE.MultiMaterial.prototype = {
 	}
 
 };
-
-// backwards compatibility
-
-THREE.MeshFaceMaterial = THREE.MultiMaterial;

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1307,7 +1307,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 						var geometry = objects.update( object );
 
-						if ( material instanceof THREE.MeshFaceMaterial ) {
+						if ( material instanceof THREE.MultiMaterial ) {
 
 							var groups = geometry.groups;
 							var materials = material.materials;