minor ts type fix
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user