object transform in editor

This commit is contained in:
azykov@mail.ru
2026-06-22 15:30:58 +03:00
parent 21c48e44ee
commit bf7f803a99
6 changed files with 97 additions and 29 deletions
@@ -1,8 +1,9 @@
import { useMemo } from "react";
import * as THREE from "three";
import { observer } from "mobx-react-lite";
import type { ObjectGeometryViewItem } from "../../../state/viewLayers";
export const SelectionBoundingBox = function({ item }: { item: ObjectGeometryViewItem }) {
export const SelectionBoundingBox = observer(function({ item }: { item: ObjectGeometryViewItem }) {
const obj = item.object;
const bb = item.objectTypeGeometry.boundingBox;
@@ -41,4 +42,4 @@ export const SelectionBoundingBox = function({ item }: { item: ObjectGeometryVie
<lineBasicMaterial color="#ffff00" />
</lineSegments>
</mesh>;
};
});