Explorar el Código

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

Makes it consistent with `Mesh#copy` and `Object3D#copy`
Nathan Bierema hace 1 año
padre
commit
2564e4f326
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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() {