|
@@ -38,6 +38,8 @@ function BufferGeometry() {
|
|
|
|
|
|
this.drawRange = { start: 0, count: Infinity };
|
|
|
|
|
|
+ this.userData = {};
|
|
|
+
|
|
|
}
|
|
|
|
|
|
BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
|
|
@@ -928,6 +930,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
data.uuid = this.uuid;
|
|
|
data.type = this.type;
|
|
|
if ( this.name !== '' ) data.name = this.name;
|
|
|
+ if ( Object.keys( this.userData ).length > 0 ) data.userData = this.userData;
|
|
|
|
|
|
if ( this.parameters !== undefined ) {
|
|
|
|
|
@@ -1121,6 +1124,10 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
this.drawRange.start = source.drawRange.start;
|
|
|
this.drawRange.count = source.drawRange.count;
|
|
|
|
|
|
+ // user data
|
|
|
+
|
|
|
+ this.userData = source.userData;
|
|
|
+
|
|
|
return this;
|
|
|
|
|
|
},
|