Skip to content

Commit

Permalink
Changed implementation of removing transform gizmos from objects as t…
Browse files Browse the repository at this point in the history
…hey are deleted
  • Loading branch information
Dhruv-0-Arora committed Jul 15, 2024
1 parent f2f3602 commit a489135
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fission/src/ui/modals/spawning/ManageAssembliesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ const AssemblyCard: React.FC<AssemblyCardProps> = ({ id, update }) => {
<Label className="text-wrap break-all">{id}</Label>
<Button
value="Delete"
// prettier-ignore
onClick={() => {
if (World.SceneRenderer.sceneObjects.get(id) && World.SceneRenderer.sceneObjects.get(id) instanceof MirabufSceneObject) {
const mirabuf = World.SceneRenderer.sceneObjects.get(id) as MirabufSceneObject
mirabuf.DisableTransformControls()
}
(World.SceneRenderer.sceneObjects.get(id) as MirabufSceneObject).DisableTransformControls()
World.SceneRenderer.RemoveSceneObject(id)
update()
}}
Expand Down

0 comments on commit a489135

Please sign in to comment.