File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
com.unity.render-pipelines.core/Runtime/Camera
com.unity.render-pipelines.high-definition Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ Camera GetNextCamera()
8989
9090 void SetCameraIndex ( int index )
9191 {
92- if ( index > 0 || index < GetCameraCount ( ) )
92+ if ( index > 0 && index < GetCameraCount ( ) )
9393 {
9494 m_CurrentCameraIndex = index ;
9595
Original file line number Diff line number Diff line change @@ -319,6 +319,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
319319- Fixed missing initialization of input params in Blit for VR.
320320- Fix Inf source in LTC for area lights.
321321- Fixed light layers not correctly disabled when the lightlayers is set to Nothing and Lightlayers isn't enabled in HDRP Asset
322+ - Fixed a wrong condition in CameraSwitcher, potentially causing out of bound exceptions.
322323
323324### Changed
324325- Hide unused LOD settings in Quality Settings legacy window.
You can’t perform that action at this time.
0 commit comments