minor ts type fix
This commit is contained in:
parent
bc9e8e8e4e
commit
42e6d17167
|
|
@ -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(),
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue