Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
force deselect entity on prefab creation
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanCaruso committed Aug 4, 2024
1 parent a18e268 commit 0ea43f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function CreatePrefabPanel({ entity }: { entity: Entity }) {
scale: new Vector3(1, 1, 1)
})
setComponent(entity, EntityTreeComponent, { parentEntity: prefabEntity })

getMutableState(SelectionState).selectedEntities.set([])
await exportRelativeGLTF(prefabEntity, srcProject, fileName)
//await exportRelativeGLTF(entity, srcProject, fileName)
//pass tags to static resource
Expand Down

0 comments on commit 0ea43f8

Please sign in to comment.