diff --git a/webclient/src/components/layers/LayeredThreeView.tsx b/webclient/src/components/layers/LayeredThreeView.tsx
index d22447d..dab7208 100644
--- a/webclient/src/components/layers/LayeredThreeView.tsx
+++ b/webclient/src/components/layers/LayeredThreeView.tsx
@@ -1,5 +1,5 @@
import { observer } from "mobx-react-lite";
-import { ObjectGeomertiesLayer } from "./ObjectGeomertiesLayer";
+import { ObjectGeometriesLayer } from "./ObjectGeometriesLayer";
import { Canvas } from "@react-three/fiber";
import { Perf } from "r3f-perf";
import { state } from "../../state";
@@ -17,7 +17,7 @@ export const LayeredThreeView = observer(function () {
-
+
>;
});
diff --git a/webclient/src/components/layers/ObjectGeomertiesLayer.tsx b/webclient/src/components/layers/ObjectGeometriesLayer.tsx
similarity index 92%
rename from webclient/src/components/layers/ObjectGeomertiesLayer.tsx
rename to webclient/src/components/layers/ObjectGeometriesLayer.tsx
index 52a97dc..95e9723 100644
--- a/webclient/src/components/layers/ObjectGeomertiesLayer.tsx
+++ b/webclient/src/components/layers/ObjectGeometriesLayer.tsx
@@ -4,7 +4,7 @@ import { ObjectGeometryList } from "../../rendering/ObjectGeometryList";
import { observer } from "mobx-react-lite";
import { state } from "../../state";
-export const ObjectGeomertiesLayer = observer(function () {
+export const ObjectGeometriesLayer = observer(function () {
const geometries = state.view.objectGeometries;
diff --git a/webclient/src/rendering/ObjectGeometryList.ts b/webclient/src/rendering/ObjectGeometryList.ts
index 90f4052..f220fcc 100644
--- a/webclient/src/rendering/ObjectGeometryList.ts
+++ b/webclient/src/rendering/ObjectGeometryList.ts
@@ -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);
}