Browse Source

fix: remove camera warning log on default camera creation (#916)

* fix: remove camera warning log on default camera creation

* refactor: remove unused logger import from TresCanvas
Alvaro Saburido 3 months ago
parent
commit
5d490b4989
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/components/TresCanvas.vue

+ 0 - 7
src/components/TresCanvas.vue

@@ -28,7 +28,6 @@ import {
 import pkg from '../../package.json'
 import {
   type TresContext,
-  useLogger,
   useTresContextProvider,
 } from '../composables'
 import { extend } from '../core/catalogue'
@@ -97,8 +96,6 @@ const slots = defineSlots<{
   default: () => any
 }>()
 
-const { logWarning } = useLogger()
-
 const canvas = ref<HTMLCanvasElement>()
 
 /*
@@ -234,10 +231,6 @@ onMounted(() => {
   )
 
   if (!camera.value) {
-    logWarning(
-      'No camera found. Creating a default perspective camera. '
-      + 'To have full control over a camera, please add one to the scene.',
-    )
     addDefaultCamera()
   }