-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/remaining issues camera inside terrain #4551
base: main
Are you sure you want to change the base?
Fix/remaining issues camera inside terrain #4551
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4551 +/- ##
==========================================
- Coverage 87.87% 87.78% -0.09%
==========================================
Files 265 265
Lines 37577 37589 +12
Branches 2349 2352 +3
==========================================
- Hits 33020 32999 -21
- Misses 3518 3549 +31
- Partials 1039 1041 +2 ☔ View full report in Codecov by Sentry. |
@chrneumann where are we with this? |
Waiting for your reply, see the open code review. |
Hu? |
Ok, sorry, I did not submit the review. |
Ok, looks good, can you check why the test is failing? |
Fixed that, a render test failed because of the readded buffer between terrain surface and camera. |
Should this PR still be in draft mode? |
Can you please add a changelog entry? |
…camera-inside-terrain
Done. New transform stuff also merged. |
Looking at the fact that you added code without a failing test can indicate that the added code in the transform class is not covered by tests? |
Yes, the try/catch is not covered by a test. We talked about that before: #4551 (comment) Best would be to have more insights from someone who knows more about the recalculation code. Not sure, if you got a reply? But yeah, I could also try to crash it and find out which values lead to the crash and add a test with these values. But knowing why it crashes in the first place would be better. |
Did you push the commit? I still see that the code coverage is not getting to this catch block... |
No, did you see the discussion at #4551 (comment) ? |
Yes, regardless of if the solution is an "if" or a try-catch, there's a need to add a test the reproduces this issue (I think a unit test is the right kind of test here, but I don't mind either way). |
Launch Checklist
Add buffer so that camera doesn't sit directly on terrain. Prevent crashes when zoom is wrongly calculated.
CHANGELOG.md
under the## main
section.