Browse Source

Material Canvas: Remove invalid display mapper enum option

Removing invalid display mapper enum options so that it's not selectable from drop downs.

Resolves #14896

Signed-off-by: gadams3 <[email protected]>
gadams3 2 years ago
parent
commit
b9b12e3ad5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Gem/Code/Source/TonemappingExampleComponent.cpp

+ 2 - 2
Gem/Code/Source/TonemappingExampleComponent.cpp

@@ -292,7 +292,7 @@ namespace AtomSampleViewer
     void TonemappingExampleComponent::UpdateCapturePassHierarchy()
     void TonemappingExampleComponent::UpdateCapturePassHierarchy()
     {
     {
         AZ_Assert(static_cast<Render::DisplayMapperOperationType>(m_displayMapperConfiguration.m_operationType)
         AZ_Assert(static_cast<Render::DisplayMapperOperationType>(m_displayMapperConfiguration.m_operationType)
-            != Render::DisplayMapperOperationType::Invalid, "Invalid display mapper operation mode");
+            <= Render::DisplayMapperOperationType::Reinhard, "Invalid display mapper operation mode");
         AZStd::array<AZStd::string, 5> displayMapperPasses = {
         AZStd::array<AZStd::string, 5> displayMapperPasses = {
             "AcesOutputTransform",
             "AcesOutputTransform",
             "AcesLutPass",
             "AcesLutPass",
@@ -342,7 +342,7 @@ namespace AtomSampleViewer
     const char* TonemappingExampleComponent::GetDisplayMapperOperationTypeLabel() const
     const char* TonemappingExampleComponent::GetDisplayMapperOperationTypeLabel() const
     {
     {
         AZ_Assert(static_cast<Render::DisplayMapperOperationType>(m_displayMapperConfiguration.m_operationType)
         AZ_Assert(static_cast<Render::DisplayMapperOperationType>(m_displayMapperConfiguration.m_operationType)
-            != Render::DisplayMapperOperationType::Invalid, "Invalid display mapper operation mode");
+            <= Render::DisplayMapperOperationType::Reinhard, "Invalid display mapper operation mode");
         const char* displayMapperOperationTypeLabels[] =
         const char* displayMapperOperationTypeLabels[] =
         {
         {
             "ACES",
             "ACES",