Skip to content

Commit 8bdb5f6

Browse files
committed
Revert "prevent NaN values in .normalizeNormals"
This reverts commit 8d5203f.
1 parent f5778ab commit 8bdb5f6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/core/BufferGeometry.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,9 @@ THREE.BufferGeometry.prototype = {
818818

819819
n = 1.0 / Math.sqrt( x * x + y * y + z * z );
820820

821-
if( isFinite( n ) ) {
822-
823-
normals[ i ] *= n;
824-
normals[ i + 1 ] *= n;
825-
normals[ i + 2 ] *= n;
826-
827-
}
821+
normals[ i ] *= n;
822+
normals[ i + 1 ] *= n;
823+
normals[ i + 2 ] *= n;
828824

829825
}
830826

0 commit comments

Comments
 (0)