Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
cba14ad6ba
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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 {