diff --git a/src/components/ObjectView.tsx b/src/components/ObjectView.tsx index ba02f33..97d79d6 100644 --- a/src/components/ObjectView.tsx +++ b/src/components/ObjectView.tsx @@ -5,6 +5,7 @@ import type { Group, Mesh } from "three"; import { Edges, TransformControls } from "@react-three/drei"; import { state } from "../state"; import { nextSelectionEditMode } from "../state/worldEditor"; +import type { R3 } from "../types/3d"; type ObjectViewProps = { object: ObjectInstance; @@ -53,7 +54,7 @@ export const ObjectView = observer(function ({ object }: ObjectViewProps) { state.worldEditor.setObjectTransform( object.id, group.position.toArray(), - group.rotation.toArray().slice(0, 3), // chop EulerOrder off array + group.rotation.toArray().slice(0, 3) as R3, // chop EulerOrder off array group.scale.toArray(), ); };