Skip to content

Commit

Permalink
Return this from BatchedMesh#copy (mrdoob#27161)
Browse files Browse the repository at this point in the history
Makes it consistent with `Mesh#copy` and `Object3D#copy`
  • Loading branch information
Methuselah96 committed Nov 9, 2023
1 parent b5d1167 commit 2564e4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/objects/BatchedMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ class BatchedMesh extends Mesh {
this._matricesTexture = source._matricesTexture.clone();
this._matricesTexture.image.data = this._matricesTexture.image.slice();

return this;

}

dispose() {
Expand Down

0 comments on commit 2564e4f

Please sign in to comment.