You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to clone a BatchedMesh, I encountered the following error: Uncaught TypeError: this._matricesTexture.image.slice is not a function.
I noticed that the BatchedMesh source code contains the following lines:
...
// Line 930this._matricesTexture.image.data=this._matricesTexture.image.slice();
...
// Line 935this._colorsTexture.image.data=this._colorsTexture.image.slice();
...
During debugging, I observed that the data property of image is a TypedArray, but image itself does not have a slice() method. I am wondering if image.slice() should be modified to image.data.slice()?
Reproduction steps
Clone a BatchedMesh
Code
none
Live example
none
Screenshots
No response
Version
r166
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered:
Since I didn't find the Image class in the Threejs documentation, I don't quite understand what the data structure of Image is, and whether only the Image in the DataTexture created in BatchedMesh does not have a slice() method
Description
While attempting to clone a BatchedMesh, I encountered the following error: Uncaught TypeError: this._matricesTexture.image.slice is not a function.
I noticed that the BatchedMesh source code contains the following lines:
During debugging, I observed that the
data
property ofimage
is aTypedArray
, butimage
itself does not have aslice()
method. I am wondering ifimage.slice()
should be modified toimage.data.slice()
?Reproduction steps
Clone a BatchedMesh
Code
none
Live example
none
Screenshots
No response
Version
r166
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: