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

Commit

Permalink
Merge pull request #6 from EtherealEngine/HexaField-patch-1
Browse files Browse the repository at this point in the history
Fix cube not being visible
  • Loading branch information
HexaField authored Jun 19, 2024
2 parents 3f6d600 + bdc2c47 commit 780edb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CustomLocationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { NameComponent } from '@etherealengine/spatial/src/common/NameComponent'
import { Vector3_Up } from '@etherealengine/spatial/src/common/constants/MathConstants'
import { addObjectToGroup } from '@etherealengine/spatial/src/renderer/components/GroupComponent'
import { VisibleComponent } from '@etherealengine/spatial/src/renderer/components/VisibleComponent'
import { EntityTreeComponent } from '@etherealengine/spatial/src/transform/components/EntityTree'
import { TransformComponent } from '@etherealengine/spatial/src/transform/components/TransformComponent'
import { TransformSystem, computeTransformMatrix } from '@etherealengine/spatial/src/transform/systems/TransformSystem'

Expand All @@ -22,6 +23,7 @@ const SceneState = defineState({
initial: () => {
const entity = createEntity()
setComponent(entity, TransformComponent)
setComponent(entity, EntityTreeComponent, { parentEntity: Engine.instance.originEntity })
return {
entity
}
Expand Down

0 comments on commit 780edb1

Please sign in to comment.