瀏覽代碼

Fix toJSON call

Temdog007 6 年之前
父節點
當前提交
a11243ef0d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/InstancedBufferGeometry.js

+ 1 - 1
src/core/InstancedBufferGeometry.js

@@ -36,7 +36,7 @@ InstancedBufferGeometry.prototype = Object.assign( Object.create( BufferGeometry
 	},
 	},
 
 
 	toJSON: function(){
 	toJSON: function(){
-		var data = InstancedBufferGeometry.prototype.toJSON.call( this );
+		var data = BufferGeometry.prototype.toJSON.call( this );
 
 
 		data.maxInstancedCount = this.maxInstancedCount;
 		data.maxInstancedCount = this.maxInstancedCount;