Skip to content

Commit

Permalink
Merge pull request #23 from threlte/remove-scene-graph-use
Browse files Browse the repository at this point in the history
Remove SceneGraphObject usage
  • Loading branch information
michealparks authored Jan 15, 2025
2 parents 5f507cb + 5d53ddb commit 2a8532a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-forks-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@threlte/test': patch
---

Remove SceneGraphObject usage
6 changes: 3 additions & 3 deletions src/lib/Container.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<svelte:options accessors />

<script>
import { SceneGraphObject, createThrelteContext } from '@threlte/core'
import { T, createThrelteContext } from '@threlte/core'
import { ACESFilmicToneMapping } from 'three'
import { interactivity } from '@threlte/extras'
import { mockAdvanceFn } from './advance'
Expand Down Expand Up @@ -67,6 +67,6 @@
export const interactivityContext = interactivity()
</script>

<SceneGraphObject object={threlteContext.scene}>
<T is={threlteContext.scene}>
<svelte:component this={component} bind:this={ref} {...componentProps} />
</SceneGraphObject>
</T>

0 comments on commit 2a8532a

Please sign in to comment.