Bläddra i källkod

Fix InstancedInterleavedBuffer not cloning correctly (#21781)

Garrett Johnson 4 år sedan
förälder
incheckning
82d88ee5a8
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;