소스 검색

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.image.data = this._matricesTexture.image.slice();
 
+		return this;
+
 	}
 
 	dispose() {