You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/RPI/Code/Tests/Material
santorac 3c331e00ff Moved the Material Component property override renaming to EditorMaterialComponent via ApplyAutomaticPropertyUpdates.
MaterialAssignment::ApplyProperties() still reports warnings but does not update the m_propertyOverrides.
MaterialAssignment::ApplyProperties() will now skip the old name'd overrides if overrides are present for the new names. I'm not sure if this will ever happen, but it did happen while I had some intermediate changes, so I imagine it could happen again.
I had to update the Material::FindPropertyIndex function to expose information about renames when they occur. This should make it easier for other systems to get (somewhat) automatic benefit from the version update feature.
I also found that there was an issue with material inspector where it wouldn't be initialized the the right override values when renames were present. Now it applies the renames to whatever override data it gets from the Material Component.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
4 years ago
..
LuaMaterialFunctorTests.cpp Fixed unit test compile issues, and added a unit test for PSO handling setting. 4 years ago
MaterialAssetTestUtils.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialAssetTestUtils.h Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialAssetTests.cpp Fixed an issue where the wrong version number was being reported in a warning message. It showed the latest version instead of the original version number. 4 years ago
MaterialFunctorSourceDataSerializerTests.cpp Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
MaterialFunctorTests.cpp Material System Reports Warnings About PSO-Impacting Changes 4 years ago
MaterialPropertySerializerTests.cpp Added backward-compatible support for the old "id" key in material type files, which is being renamed to "name". 4 years ago
MaterialPropertyValueSourceDataTests.cpp Gems/Atom 4 years ago
MaterialSourceDataTests.cpp Fixed an issue where the wrong version number was being reported in a warning message. It showed the latest version instead of the original version number. 4 years ago
MaterialTests.cpp Moved the Material Component property override renaming to EditorMaterialComponent via ApplyAutomaticPropertyUpdates. 4 years ago
MaterialTypeAssetTests.cpp Made material property auto-rename procedure apply to Material Component at runtime. This ensures that an material property overrides and any gameplay scripts that work with property overrides can get the benefit of the material type version update procedure. 4 years ago
MaterialTypeSourceDataTests.cpp Updated MaterialTypeSourceData to force users to move the "version" indicator to the new location at the top level of the json document. 4 years ago