Skip to content

fix: replace console.log with p5._friendlyError in p5.Camera.perspective() (fixes #8587)#8588

Open
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/camera-console-to-fes
Open

fix: replace console.log with p5._friendlyError in p5.Camera.perspective() (fixes #8587)#8588
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/camera-console-to-fes

Conversation

@MASTERsj01
Copy link

Summary

Replaces 2 console.log calls in p5.Camera.perspective() with p5._friendlyError().

Resolves #8587

Changes

Line Warning
2052 Near plane value close to or below 0
2059 Far plane less than near plane

Notes

  • All existing tests pass
  • 1 file changed

…ive()

- Replace 2 console.log calls in perspective() with p5._friendlyError()
  for near plane (close to 0) and far plane (less than near) warnings
- Messages now respect p5.disableFriendlyErrors setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

p5.Camera: replace console.log with Friendly Error System (FES) in perspective()

1 participant