diff --git a/src/components/TresCanvas.vue b/src/components/TresCanvas.vue index a698fda6c..208ac4955 100644 --- a/src/components/TresCanvas.vue +++ b/src/components/TresCanvas.vue @@ -150,7 +150,7 @@ onMounted(() => { () => props.camera, (newCamera, oldCamera) => { if (newCamera) registerCamera(newCamera) - else if (oldCamera) { + if (oldCamera) { oldCamera.removeFromParent() deregisterCamera(oldCamera) }