Explorar el Código

Fixed BufferGeometryLoader center breakage.

Mr.doob hace 12 años
padre
commit
074e613745
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/loaders/BufferGeometryLoader.js

+ 4 - 1
src/loaders/BufferGeometryLoader.js

@@ -59,7 +59,10 @@ THREE.BufferGeometryLoader.prototype = {
 
 		if ( boundingSphere !== undefined ) {
 
-			geometry.boundingSphere = new THREE.Sphere( boundingSphere.center, boundingSphere.radius );
+			geometry.boundingSphere = new THREE.Sphere(
+				new THREE.Vector3().fromArray( boundingSphere.center ),
+				boundingSphere.radius
+			);
 
 		}