Explorar o código

Revert "prevent NaN values in .normalizeNormals"

This reverts commit 8d5203fd2f43235c23e0d059b802e207cce69fa8.
Mugen87 %!s(int64=9) %!d(string=hai) anos
pai
achega
8bdb5f654d
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  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 );
 			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;
 
 
 		}
 		}