Skip to content

Commit

Permalink
fix: made reactivity of camera prop on TresCanvas work again (#396)
Browse files Browse the repository at this point in the history
Co-authored-by: Tino Koch <[email protected]>
  • Loading branch information
Tinoooo and Tinoooo authored Sep 13, 2023
1 parent 158d4c3 commit 990612d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ onMounted(() => {
() => props.camera,
(newCamera, oldCamera) => {
if (newCamera) registerCamera(newCamera)
else if (oldCamera) {
if (oldCamera) {
oldCamera.removeFromParent()
deregisterCamera(oldCamera)
}
Expand Down

0 comments on commit 990612d

Please sign in to comment.