Files
Sam Pavlovic d8d0f9b67f Guard Aspect against NaN and build CameraComponent FoV from current camera rect instead of screen's (#5512)
* Guard Aspect against NaN and build CameraComponent FoV from current camera rect instead of screen's

Getting screen's aspect is actually wrong if we have more than one camera in play (eg splitscreen)

Screen.Aspect not being set until playing is our intended behaviour for what I remember

Fixes https://github.com/Facepunch/sbox/issues/5319

* Add tests and update comment
2026-07-30 14:56:59 +00:00
..
2026-07-13 09:39:15 +02:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-07-23 19:29:30 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00
2026-06-12 13:23:50 +01:00