Browse Source

Return `this` from `BatchedMesh#copy` (#27161)

Makes it consistent with `Mesh#copy` and `Object3D#copy`
Nathan Bierema 1 year ago
parent
commit
2564e4f326
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/jsm/objects/BatchedMesh.js

+ 2 - 0
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() {