Browse Source

Merge pull request #537 from aws-lumberyard-dev/Atom/santorac/MaterialDetailsCopyVariantFix

Added reflection for ShaderOptionValuesSourceData so that the materia…
santorac 2 years ago
parent
commit
566cf5dc59
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Gem/Code/Source/SampleComponentManager.cpp

+ 4 - 0
Gem/Code/Source/SampleComponentManager.cpp

@@ -260,6 +260,10 @@ namespace AtomSampleViewer
             serializeContext->Class<SampleComponentManager, AZ::Component>()
                 ->Version(0)
                 ;
+
+            // This registration matches ShaderOptionValuesSourceData, which is needed by ImGuiShaderUtils, to support
+            // generating JSON for shader variants.
+            serializeContext->RegisterGenericType<AZStd::unordered_map<Name, Name>>();
         }
     }