Browse Source

modified image.slice() to image.data.slice() in BatchedMesh.js (#28805)

Zehua Hu 1 năm trước cách đây
mục cha
commit
cb1e07a70c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/objects/BatchedMesh.js

+ 2 - 2
src/objects/BatchedMesh.js

@@ -927,12 +927,12 @@ class BatchedMesh extends Mesh {
 		this._multiDrawStarts = source._multiDrawStarts.slice();
 
 		this._matricesTexture = source._matricesTexture.clone();
-		this._matricesTexture.image.data = this._matricesTexture.image.slice();
+		this._matricesTexture.image.data = this._matricesTexture.image.data.slice();
 
 		if ( this._colorsTexture !== null ) {
 
 			this._colorsTexture = source._colorsTexture.clone();
-			this._colorsTexture.image.data = this._colorsTexture.image.slice();
+			this._colorsTexture.image.data = this._colorsTexture.image.data.slice();
 
 		}