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.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
santorac
2021-10-21 12:13:45 -07:00
parent bf2997f960
commit f4d5a75574
4 changed files with 9 additions and 3 deletions
@@ -264,6 +264,8 @@ namespace UnitTest
// This can find errors and warnings, we are looking for a warning when the version update is applied
ErrorMessageFinder warningFinder;
warningFinder.AddExpectedErrorMessage("Automatic updates are available. Consider updating the .material source file");
warningFinder.AddExpectedErrorMessage("This material is based on version '1'");
warningFinder.AddExpectedErrorMessage("material type is now at version '2'");
// Even though this material was created using the old version of the material type, it's property values should get automatically
// updated to align with the new property layout in the latest MaterialTypeAsset.