2
0
Эх сурвалжийг харах

Fixed BufferGeometryLoader center breakage.

Mr.doob 12 жил өмнө
parent
commit
074e613745

+ 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
+			);
 
 		}