typo fixed

This commit is contained in:
azykov@mail.ru
2026-06-20 18:44:35 +03:00
parent 579fe36e6c
commit 98e387c490
3 changed files with 6 additions and 6 deletions
@@ -48,8 +48,8 @@ export class ObjectGeometryList {
this.items.values.forEach((item) => {
const obj = item.object;
this._p.set(obj.position[0], obj.position[1], obj.position[2]);
this._e.set(obj.rotation[0], obj.rotation[1], obj.rotation[2]);
this._p.set(...obj.position);
this._e.set(...obj.rotation);
this._q.setFromEuler(this._e);
const typeId = item.objectTypeGeometry.objectType.id;
@@ -60,7 +60,7 @@ export class ObjectGeometryList {
for (const mesh of item.objectTypeGeometry.meshes ?? []) {
this.matrixObj.position.copy(this._p);
this.matrixObj.quaternion.copy(this._q);
this.matrixObj.scale.set(obj.scale[0], obj.scale[1], obj.scale[2]);
this.matrixObj.scale.set(...obj.scale);
this.matrixObj.updateMatrix();
mesh.setMatrixAt(instanceIdx, this.matrixObj.matrix);
}