Skip to content

Commit

Permalink
fix: remove camera warning log on default camera creation (#916)
Browse files Browse the repository at this point in the history
* fix: remove camera warning log on default camera creation

* refactor: remove unused logger import from TresCanvas
  • Loading branch information
alvarosabu authored Feb 6, 2025
1 parent 45f215c commit 5d490b4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
import pkg from '../../package.json'
import {
type TresContext,
useLogger,
useTresContextProvider,
} from '../composables'
import { extend } from '../core/catalogue'
Expand Down Expand Up @@ -97,8 +96,6 @@ const slots = defineSlots<{
default: () => any
}>()
const { logWarning } = useLogger()
const canvas = ref<HTMLCanvasElement>()
/*
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 5d490b4

Please sign in to comment.