瀏覽代碼

Clean up.

Mr.doob 6 年之前
父節點
當前提交
cba14ad6ba
共有 1 個文件被更改,包括 1 次插入4 次删除
  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 {