minor ts type fix

This commit is contained in:
azykov@mail.ru 2026-06-02 13:50:46 +03:00
parent bc9e8e8e4e
commit 42e6d17167
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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(),
);
};