diff --git a/src/core/InstancedBufferGeometry.js b/src/core/InstancedBufferGeometry.js index 214618a4efe791ecacc56bef9c767f93b35cf343..2422610bb127a009816217903e62eb60c43c30f0 100644 --- a/src/core/InstancedBufferGeometry.js +++ b/src/core/InstancedBufferGeometry.js @@ -35,7 +35,8 @@ InstancedBufferGeometry.prototype = Object.assign( Object.create( BufferGeometry }, - toJSON: function(){ + toJSON: function () { + var data = BufferGeometry.prototype.toJSON.call( this ); data.maxInstancedCount = this.maxInstancedCount; @@ -43,6 +44,7 @@ InstancedBufferGeometry.prototype = Object.assign( Object.create( BufferGeometry data.isInstancedBufferGeometry = true; return data; + } } );