Procházet zdrojové kódy

RoundedBoxBufferGeometry: Clean up.

Mr.doob před 4 roky
rodič
revize
45b0103e4d

+ 1 - 5
examples/jsm/geometries/RoundedBoxBufferGeometry.js

@@ -50,11 +50,7 @@ class RoundedBoxBufferGeometry extends BoxBufferGeometry {
 		super( 1, 1, 1, segments, segments, segments );
 		super( 1, 1, 1, segments, segments, segments );
 
 
 		// if we just have one segment we're the same as a regular box
 		// 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();
 		const geometry2 = this.toNonIndexed();