瀏覽代碼

Fix InstancedInterleavedBuffer not cloning correctly (#21781)

Garrett Johnson 4 年之前
父節點
當前提交
82d88ee5a8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/InterleavedBuffer.js

+ 1 - 1
src/core/InterleavedBuffer.js

@@ -90,7 +90,7 @@ class InterleavedBuffer {
 
 		const array = new this.array.constructor( data.arrayBuffers[ this.array.buffer._uuid ] );
 
-		const ib = new InterleavedBuffer( array, this.stride );
+		const ib = new this.constructor( array, this.stride );
 		ib.setUsage( this.usage );
 
 		return ib;