UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

14 lines (10 loc) 535 B
import { getMultipleSelectionTargets } from "../../states/useMultipleSelectionTargets" import { getSelectionTarget } from "../../states/useSelectionTarget" import { getTransformControlsDragging } from "../../states/useTransformControlsDragging" export default () => { if (getTransformControlsDragging()) return const selectionTarget = getSelectionTarget() const multipleSelectionTargets = getMultipleSelectionTargets() selectionTarget?.dispose() for (const target of multipleSelectionTargets) target.dispose() }