Skip to content

Commit

Permalink
Don't log error in *Camera components when unable to remove non-e…
Browse files Browse the repository at this point in the history
…xistent helper (#153)

Analog `*Light` components
  • Loading branch information
Vatroslav Vrbanic committed Nov 19, 2022
1 parent 3206309 commit e7cfa7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/OrthographicCamera.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,9 @@ If you use this approach you'll see a warning in the console if you define left,
)
}
} else {
console.error(
console.debug(
`SVELTHREE > ${c_name} > remove_helper : Couldn't remove unavailable 'camera.userData.helper' instance!`,
{ camera }
{ camera, helper: camera.userData.helper }
)
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/PerspectiveCamera.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,9 @@ svelthree uses svelte-accmod, where accessors are always `true`, regardless of `
)
}
} else {
console.error(
console.debug(
`SVELTHREE > ${c_name} > remove_helper : Couldn't remove unavailable 'camera.userData.helper' instance!`,
{ camera }
{ camera, helper: camera.userData.helper }
)
}
} else {
Expand Down

0 comments on commit e7cfa7b

Please sign in to comment.