|
|
@@ -1297,10 +1297,7 @@ class Object3D extends EventDispatcher {
|
|
|
object.geometryInfo = this._geometryInfo.map( info => ( {
|
|
|
...info,
|
|
|
boundingBox: info.boundingBox ? info.boundingBox.toJSON() : undefined,
|
|
|
- boundingSphere: info.boundingSphere ? {
|
|
|
- radius: info.boundingSphere.radius,
|
|
|
- center: info.boundingSphere.center.toArray()
|
|
|
- } : undefined
|
|
|
+ boundingSphere: info.boundingSphere ? info.boundingSphere.toJSON() : undefined
|
|
|
} ) );
|
|
|
object.instanceInfo = this._instanceInfo.map( info => ( { ...info } ) );
|
|
|
|
|
|
@@ -1329,10 +1326,7 @@ class Object3D extends EventDispatcher {
|
|
|
|
|
|
if ( this.boundingSphere !== null ) {
|
|
|
|
|
|
- object.boundingSphere = {
|
|
|
- center: this.boundingSphere.center.toArray(),
|
|
|
- radius: this.boundingSphere.radius
|
|
|
- };
|
|
|
+ object.boundingSphere = this.boundingSphere.toJSON();
|
|
|
|
|
|
}
|
|
|
|