Skip to content

Commit

Permalink
fix: add app context to state (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu authored Jul 13, 2023
1 parent c069f64 commit 197f258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TresScene.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { App, onMounted, onUnmounted, ref, watch } from 'vue'
import { App, getCurrentInstance, onMounted, onUnmounted, ref, watch } from 'vue'
import { PerspectiveCamera, Scene } from 'three'
import { createTres } from '../core/renderer'
Expand Down Expand Up @@ -61,7 +61,7 @@ setState('scene', scene)
setState('canvas', canvas)
setState('container', container)
setState('pointerEventHandler', pointerEventHandler)
setState('appContext', getCurrentInstance())
const { onLoop, resume } = useRenderLoop()
const { activeCamera, pushCamera, clearCameras } = useCamera()
Expand Down

0 comments on commit 197f258

Please sign in to comment.