Browse Source

Clean up.

Mr.doob 6 years ago
parent
commit
cba14ad6ba
1 changed files with 1 additions and 4 deletions
  1. 1 4
      editor/js/Sidebar.Geometry.js

+ 1 - 4
editor/js/Sidebar.Geometry.js

@@ -179,11 +179,8 @@ Sidebar.Geometry = function ( editor ) {
 
 			}
 
-			if ( geometry.boundingSphere === null ) {
+			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
-				geometry.computeBoundingSphere();
-
-			}
 			geometryBoundingSphere.setValue( Math.floor( geometry.boundingSphere.radius * 1000 ) / 1000 );
 
 		} else {