Explorar o código

RoundedBoxBufferGeometry: Clean up.

Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
45b0103e4d
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      examples/jsm/geometries/RoundedBoxBufferGeometry.js

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

@@ -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();
 

粤ICP备19079148号