Hopefully fix a Jenkins build failure about "function cannot access 'AZ::RPI::MaterialVersionUpdate::RenamePropertyAction::m_fromPropertyId'"

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
monroegm-disable-blank-issue-2
santorac 4 years ago
parent 19dee0e37c
commit a4321baecc

@ -33,6 +33,8 @@ namespace AZ
{
AZ_TYPE_INFO(AZ::RPI::MaterialVersionUpdate::RenameAction, "{A1FBEB19-EA05-40F0-9700-57D048DF572B}");
static void Reflect(ReflectContext* context);
AZ::Name m_fromPropertyId;
AZ::Name m_toPropertyId;
};

@ -14,16 +14,24 @@ namespace AZ
{
namespace RPI
{
void MaterialVersionUpdate::Reflect(ReflectContext* context)
void MaterialVersionUpdate::RenamePropertyAction::Reflect(ReflectContext* context)
{
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
{
serializeContext->Class<MaterialVersionUpdate::RenamePropertyAction>()
serializeContext->Class<RenamePropertyAction>()
->Version(1)
->Field("From", &MaterialVersionUpdate::RenamePropertyAction::m_fromPropertyId)
->Field("To", &MaterialVersionUpdate::RenamePropertyAction::m_toPropertyId)
->Field("From", &RenamePropertyAction::m_fromPropertyId)
->Field("To", &RenamePropertyAction::m_toPropertyId)
;
}
}
void MaterialVersionUpdate::Reflect(ReflectContext* context)
{
MaterialVersionUpdate::RenamePropertyAction::Reflect(context);
if (auto* serializeContext = azrtti_cast<SerializeContext*>(context))
{
serializeContext->RegisterGenericType<MaterialVersionUpdate::Actions>();
serializeContext->Class<MaterialVersionUpdate>()

Loading…
Cancel
Save