|
@@ -687,7 +687,7 @@ class Object3D extends EventDispatcher {
|
|
|
if ( this.visible === false ) object.visible = false;
|
|
|
if ( this.frustumCulled === false ) object.frustumCulled = false;
|
|
|
if ( this.renderOrder !== 0 ) object.renderOrder = this.renderOrder;
|
|
|
- if ( JSON.stringify( this.userData ) !== '{}' ) object.userData = this.userData;
|
|
|
+ if ( Object.keys( this.userData ).length > 0 ) object.userData = this.userData;
|
|
|
|
|
|
object.layers = this.layers.mask;
|
|
|
object.matrix = this.matrix.toArray();
|