浏览代码

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

Makes it consistent with `Mesh#copy` and `Object3D#copy`
Nathan Bierema 1 年之前
父节点
当前提交
2564e4f326
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 = source._matricesTexture.clone();
 		this._matricesTexture.image.data = this._matricesTexture.image.slice();
 		this._matricesTexture.image.data = this._matricesTexture.image.slice();
 
 
+		return this;
+
 	}
 	}
 
 
 	dispose() {
 	dispose() {