瀏覽代碼

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 月之前
父節點
當前提交
5d490b4989
共有 1 個文件被更改,包括 0 次插入7 次删除
  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()
   }