소스 검색

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 {