Bladeren bron

feat: remove default camera warning (#499)

* feat: remove annoying defautl camera warning

* chore: remove logWarning
Alvaro Saburido 1 jaar geleden
bovenliggende
commit
8bbafde48a
2 gewijzigde bestanden met toevoegingen van 0 en 10 verwijderingen
  1. 0 3
      CHANGELOG.md
  2. 0 7
      src/components/TresCanvas.vue

+ 0 - 3
CHANGELOG.md

@@ -15,10 +15,7 @@
 
 * correct minor typos ([#438](https://github.com/Tresjs/tres/issues/438)) ([341faac](https://github.com/Tresjs/tres/commit/341faacb93fd347aced7f1bc7e0484ecbc12e6ce)), closes [#452](https://github.com/Tresjs/tres/issues/452)
 * incorrect MathRepresentation type ([#456](https://github.com/Tresjs/tres/issues/456)) ([314b088](https://github.com/Tresjs/tres/commit/314b0883b78ded0cad2bdf9f2506bbeac4a0817e))
-<<<<<<< HEAD
-=======
 * **usetrescontextprovider:** fixed rendering issues caused when resize is triggered ([#512](https://github.com/Tresjs/tres/issues/512)) ([a16b12b](https://github.com/Tresjs/tres/commit/a16b12b160098e97993b14a7bb054103c88b6263)), closes [#511](https://github.com/Tresjs/tres/issues/511)
->>>>>>> main
 
 ## [3.6.0](https://github.com/Tresjs/tres/compare/3.5.2...3.6.0) (2023-12-12)
 

+ 0 - 7
src/components/TresCanvas.vue

@@ -24,7 +24,6 @@ import {
 import pkg from '../../package.json'
 import {
   useTresContextProvider,
-  useLogger,
   usePointerEventHandler,
   useRenderLoop,
   type TresContext,
@@ -72,8 +71,6 @@ const props = withDefaults(defineProps<TresCanvasProps>(), {
 
 const emit = defineEmits(['render'])
 
-const { logWarning } = useLogger()
-
 const canvas = ref<HTMLCanvasElement>()
 
 /*
@@ -180,10 +177,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()
   }