Browse Source

Remove temporary variables.

Felix Fontein 6 years ago
parent
commit
f035349d9d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/geometries/ExtrudeGeometry.js

+ 2 - 4
src/geometries/ExtrudeGeometry.js

@@ -396,8 +396,7 @@ function ExtrudeBufferGeometry( shapes, options ) {
 
 			t = b / bevelSegments;
 			z = bevelThickness * Math.cos( t * Math.PI / 2 );
-			var s = Math.sin( t * Math.PI / 2 );
-			bs = bevelSize * s + bevelBaseSize;
+			bs = bevelSize * Math.sin( t * Math.PI / 2 ) + bevelBaseSize;
 
 			// contract shape
 
@@ -495,8 +494,7 @@ function ExtrudeBufferGeometry( shapes, options ) {
 
 			t = b / bevelSegments;
 			z = bevelThickness * Math.cos( t * Math.PI / 2 );
-			var s = Math.sin( t * Math.PI / 2 );
-			bs = bevelSize * s + bevelBaseSize;
+			bs = bevelSize * Math.sin( t * Math.PI / 2 ) + bevelBaseSize;
 
 			// contract shape