Skip to content

BatchedMesh: Correctly clone data textures.#28805

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
lanvada:fix-BatchedMesh-copy-function
Jul 4, 2024
Merged

BatchedMesh: Correctly clone data textures.#28805
Mugen87 merged 1 commit into
mrdoob:devfrom
lanvada:fix-BatchedMesh-copy-function

Conversation

@lanvada
Copy link
Copy Markdown
Contributor

@lanvada lanvada commented Jul 4, 2024

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

Fixed #28803 .

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 4, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
683.4 kB (169.2 kB) 683.5 kB (169.2 kB) +10 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
460.6 kB (111.1 kB) 460.6 kB (111.1 kB) +0 B

@Mugen87 Mugen87 changed the title modified image.slice() to image.data.slice() in BatchedMesh.js BatchedMesh: Correctly clone data textures. Jul 4, 2024
@Mugen87 Mugen87 added this to the r167 milestone Jul 4, 2024
@Mugen87 Mugen87 merged commit cb1e07a into mrdoob:dev Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error encountered when cloning a BatchedMesh: Uncaught TypeError: this._matricesTexture.image.slice is not a function

3 participants