Skip to content

Commit

Permalink
RoundedBoxBufferGeometry: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 13, 2020
1 parent 4c0e435 commit 45b0103
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/jsm/geometries/RoundedBoxBufferGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ class RoundedBoxBufferGeometry extends BoxBufferGeometry {
super( 1, 1, 1, segments, segments, segments );

// if we just have one segment we're the same as a regular box
if ( segments === 1 ) {

return;

}
if ( segments === 1 ) return;

const geometry2 = this.toNonIndexed();

Expand Down

0 comments on commit 45b0103

Please sign in to comment.