Просмотр исходного кода

changed material to materialIndex in function f4()

barnabygunning 13 лет назад
Родитель
Сommit
4c92b9d0e0
1 измененных файлов с 1 добавлено и 1 удалено
  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) {
 			

粤ICP备19079148号