Jelajahi Sumber

Fix toJSON call

Temdog007 6 tahun lalu
induk
melakukan
a11243ef0d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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(){
-		var data = InstancedBufferGeometry.prototype.toJSON.call( this );
+		var data = BufferGeometry.prototype.toJSON.call( this );
 
 		data.maxInstancedCount = this.maxInstancedCount;