|
@@ -359,20 +359,6 @@ THREE.Mesh.prototype.toJSON = function ( meta ) {
|
|
|
|
|
|
var data = THREE.Object3D.prototype.toJSON.call( this, meta );
|
|
|
|
|
|
- // only serialize if not in meta geometries cache
|
|
|
- if ( meta.geometries[ this.geometry.uuid ] === undefined ) {
|
|
|
-
|
|
|
- meta.geometries[ this.geometry.uuid ] = this.geometry.toJSON( meta );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- // only serialize if not in meta materials cache
|
|
|
- if ( meta.materials[ this.material.uuid ] === undefined ) {
|
|
|
-
|
|
|
- meta.materials[ this.material.uuid ] = this.material.toJSON( meta );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
data.object.geometry = this.geometry.uuid;
|
|
|
data.object.material = this.material.uuid;
|
|
|
|