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

Revert "prevent NaN values in .normalizeNormals"

This reverts commit 8d5203fd2f43235c23e0d059b802e207cce69fa8.
Mugen87 9 лет назад
Родитель
Сommit
8bdb5f654d
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      src/core/BufferGeometry.js

+ 3 - 7
src/core/BufferGeometry.js

@@ -818,13 +818,9 @@ THREE.BufferGeometry.prototype = {
 
 			n = 1.0 / Math.sqrt( x * x + y * y + z * z );
 
-			if( isFinite( n ) ) {
-
-				normals[ i ] *= n;
-				normals[ i + 1 ] *= n;
-				normals[ i + 2 ] *= n;
-
-			}
+			normals[ i ] *= n;
+			normals[ i + 1 ] *= n;
+			normals[ i + 2 ] *= n;
 
 		}