2
0
Эх сурвалжийг харах

Fix InstancedInterleavedBuffer not cloning correctly (#21781)

Garrett Johnson 4 жил өмнө
parent
commit
82d88ee5a8

+ 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 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 );
 		ib.setUsage( this.usage );
 
 
 		return ib;
 		return ib;