Skip to content

Commit

Permalink
feat: remove default camera warning (#499)
Browse files Browse the repository at this point in the history
* feat: remove annoying defautl camera warning

* chore: remove logWarning
  • Loading branch information
alvarosabu authored Jan 23, 2024
1 parent f688c64 commit 8bbafde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 0 additions & 7 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
import pkg from '../../package.json'
import {
useTresContextProvider,
useLogger,
usePointerEventHandler,
useRenderLoop,
type TresContext,
Expand Down Expand Up @@ -72,8 +71,6 @@ const props = withDefaults(defineProps<TresCanvasProps>(), {
const emit = defineEmits(['render'])
const { logWarning } = useLogger()
const canvas = ref<HTMLCanvasElement>()
/*
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 8bbafde

Please sign in to comment.