Skip to content

Commit

Permalink
feat(core): add camera to scene
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Nov 29, 2022
1 parent 286ac4c commit 631c119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tres/src/core/useInstanceCreator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export function useInstanceCreator(prefix: string) {
processProps(attrs, instance)
if (name.includes('Camera')) {
pushCamera(instance as unknown as PerspectiveCamera)
} else {
scene?.value.add(instance)
}
scene?.value.add(instance)

logMessage('Instance added', scene)

ctx.expose(instance)
Expand Down

0 comments on commit 631c119

Please sign in to comment.