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>
This commit is contained in:
@@ -32,6 +32,8 @@ namespace AZ
|
||||
struct RenamePropertyAction
|
||||
{
|
||||
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>()
|
||||
|
||||
Reference in New Issue
Block a user