From 2564e4f326ca354b5f6f0aa232af575f5e516f98 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 9 Nov 2023 09:34:54 -0500 Subject: [PATCH] Return `this` from `BatchedMesh#copy` (#27161) Makes it consistent with `Mesh#copy` and `Object3D#copy` --- examples/jsm/objects/BatchedMesh.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/jsm/objects/BatchedMesh.js b/examples/jsm/objects/BatchedMesh.js index a6e6831c204ebf..4909d8350dc3fb 100644 --- a/examples/jsm/objects/BatchedMesh.js +++ b/examples/jsm/objects/BatchedMesh.js @@ -785,6 +785,8 @@ class BatchedMesh extends Mesh { this._matricesTexture = source._matricesTexture.clone(); this._matricesTexture.image.data = this._matricesTexture.image.slice(); + return this; + } dispose() {