Ver código fonte

changed material to materialIndex in function f4()

barnabygunning 13 anos atrás
pai
commit
4c92b9d0e0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/extras/modifiers/SubdivisionModifier.js

+ 1 - 1
src/extras/modifiers/SubdivisionModifier.js

@@ -75,7 +75,7 @@ THREE.SubdivisionModifier.prototype.smooth = function ( oldGeometry ) {
 		
 		// TODO move vertex selection over here!
 		
-		var newFace = new THREE.Face4( a, b, c, d, null, oldFace.color, oldFace.material );
+		var newFace = new THREE.Face4( a, b, c, d, null, oldFace.color, oldFace.materialIndex );
 		
 		if (scope.useOldVertexColors) {