Skip to content

Commit 8bbafde

Browse files
authored
feat: remove default camera warning (#499)
* feat: remove annoying defautl camera warning * chore: remove logWarning
1 parent f688c64 commit 8bbafde

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

CHANGELOG.md

-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515

1616
* 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)
1717
* incorrect MathRepresentation type ([#456](https://github.com/Tresjs/tres/issues/456)) ([314b088](https://github.com/Tresjs/tres/commit/314b0883b78ded0cad2bdf9f2506bbeac4a0817e))
18-
<<<<<<< HEAD
19-
=======
2018
* **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)
21-
>>>>>>> main
2219

2320
## [3.6.0](https://github.com/Tresjs/tres/compare/3.5.2...3.6.0) (2023-12-12)
2421

src/components/TresCanvas.vue

-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
import pkg from '../../package.json'
2525
import {
2626
useTresContextProvider,
27-
useLogger,
2827
usePointerEventHandler,
2928
useRenderLoop,
3029
type TresContext,
@@ -72,8 +71,6 @@ const props = withDefaults(defineProps<TresCanvasProps>(), {
7271
7372
const emit = defineEmits(['render'])
7473
75-
const { logWarning } = useLogger()
76-
7774
const canvas = ref<HTMLCanvasElement>()
7875
7976
/*
@@ -180,10 +177,6 @@ onMounted(() => {
180177
)
181178
182179
if (!camera.value) {
183-
logWarning(
184-
'No camera found. Creating a default perspective camera. '
185-
+ 'To have full control over a camera, please add one to the scene.',
186-
)
187180
addDefaultCamera()
188181
}
189182

0 commit comments

Comments
 (0)