Fixed enum value problems

Signed-off-by: Kyle B <kylebirnbaum@gmail.com>
This commit is contained in:
Kyle B
2021-08-11 22:23:06 -07:00
parent 0c05c9f204
commit cea334dbc4
3 changed files with 5 additions and 13 deletions
@@ -54,8 +54,7 @@ namespace AZ
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
{
serializeContext->Class<MeshComponentConfig>()
//->Version(2, &MeshComponentControllerVersionUtility::VersionConverter)
->Version(1)
->Version(2, &MeshComponentControllerVersionUtility::VersionConverter)
->Field("ModelAsset", &MeshComponentConfig::m_modelAsset)
->Field("SortKey", &MeshComponentConfig::m_sortKey)
->Field("ExcludeFromReflectionCubeMaps", &MeshComponentConfig::m_excludeFromReflectionCubeMaps)
@@ -65,6 +64,7 @@ namespace AZ
->Field("MinimumScreenCoverage", &MeshComponentConfig::m_minimumScreenCoverage)
->Field("QualityDecayRate", &MeshComponentConfig::m_qualityDecayRate);
}
}
bool MeshComponentConfig::IsAssetSet()
@@ -120,15 +120,6 @@ namespace AZ
return values;
}
AZStd::vector<AZStd::pair<RPI::Cullable::LodType, AZStd::string>> MeshComponentConfig::GetLodTypeValues()
{
return {
{aznumeric_cast<RPI::Cullable::LodType>(0), "Default"},
{aznumeric_cast<RPI::Cullable::LodType>(1), "Screen Coverage" },
{aznumeric_cast<RPI::Cullable::LodType>(2), "Specific Lod" }
};
}
MeshComponentController::~MeshComponentController()
{
// Release memory, disconnect from buses in the right order and broadcast events so that other components are aware.