Преглед изворни кода

Add check for bounding sphere

Temdog007 пре 6 година
родитељ
комит
c5f771fbb4
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      editor/js/Sidebar.Geometry.js

+ 5 - 0
editor/js/Sidebar.Geometry.js

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