Explorar o código

Fix InstancedInterleavedBuffer not cloning correctly (#21781)

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
82d88ee5a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;