Skip to content

Commit 7350059

Browse files
arttu-peltonenEvergreen
authored andcommitted
Fix Material Validator enum getting stuck in Rendering Debugger when 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.
1 parent 3224b68 commit 7350059

File tree

1 file changed

+1
-0
lines changed
  • Packages/com.unity.render-pipelines.high-definition/Runtime/Debug

1 file changed

+1
-0
lines changed

Packages/com.unity.render-pipelines.high-definition/Runtime/Debug/DebugDisplay.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ internal void ResetExclusiveEnumIndices()
431431
gBufferEnumIndex = 0;
432432
lightingFulscreenDebugModeEnumIndex = 0;
433433
renderingFulscreenDebugModeEnumIndex = 0;
434+
materialValidatorDebugModeEnumIndex = 0;
434435
renderingHistoryBuffersViewEnumIndex = -1;
435436
}
436437
}

0 commit comments

Comments
 (0)