Преглед на файлове

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() {