Skip to content

Commit

Permalink
Fix Material Validator enum getting stuck in Rendering Debugger when …
Browse files Browse the repository at this point in the history
…enabling another mode

Fix https://jira.unity3d.com/browse/UUM-70780

HDRP Rendering Debugger UI maps multiple different enum dropdowns into a single internal enum, and therefore these modes are mutually exclusive. The mechanism to do this relies on enumIndices that get reset. In this case the enumindex reset was missing, causing the enum dropdown UI drawer to get stuck in the previous value even though the internal enum value had changed.
  • Loading branch information
arttu-peltonen authored and Evergreen committed Apr 26, 2024
1 parent 3224b68 commit 7350059
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ internal void ResetExclusiveEnumIndices()
gBufferEnumIndex = 0;
lightingFulscreenDebugModeEnumIndex = 0;
renderingFulscreenDebugModeEnumIndex = 0;
materialValidatorDebugModeEnumIndex = 0;
renderingHistoryBuffersViewEnumIndex = -1;
}
}
Expand Down

0 comments on commit 7350059

Please sign in to comment.