Skip to content

Commit

Permalink
Examples: remove unnecessary checks (#23175)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofugaro authored Jan 19, 2022
1 parent d3ff948 commit 62fe59d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions examples/jsm/modifiers/EdgeSplitModifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ class EdgeSplitModifier {

if ( geometry.index == null ) {

if ( BufferGeometryUtils === undefined ) {

throw new Error( 'THREE.EdgeSplitModifier relies on BufferGeometryUtils' );

}

geometry = BufferGeometryUtils.mergeVertices( geometry );

}
Expand Down
10 changes: 0 additions & 10 deletions examples/jsm/modifiers/SimplifyModifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ const _cb = new Vector3(), _ab = new Vector3();

class SimplifyModifier {

constructor() {

if ( BufferGeometryUtils === undefined ) {

throw new Error( 'THREE.SimplifyModifier relies on BufferGeometryUtils' );

}

}

modify( geometry, count ) {

if ( geometry.isGeometry === true ) {
Expand Down

0 comments on commit 62fe59d

Please sign in to comment.