typo fixed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user