Integrating up through commit 90f050496

This commit is contained in:
alexpete
2021-04-07 14:03:29 -07:00
parent 8f2ed080a9
commit c2cbd430fe
2694 changed files with 285622 additions and 176874 deletions
@@ -1074,7 +1074,7 @@ bool CStatCGFCompiler::CompileCGF(AssetBuilderSDK::ProcessJobResponse& response,
// Check if our material name is just a name, or if it contains a path
if (strstr(materialName.c_str(), "/") || strstr(materialName.c_str(), "\\"))
{
// The material path is already relative to devroot, for example "samplesproject/materials/foo.mtl"
// The material path is already relative to devroot, for example "automatedtesting/materials/foo.mtl"
// We need to convert this to the cache path AP generates. In this case, cut off the game project name.
AZStd::string materialRelativePath = materialName;
EBUS_EVENT(AzFramework::ApplicationRequests::Bus, NormalizePath, gameFolder);
@@ -212,7 +212,7 @@ TEST_F(CGFBuilderTest, CGF_MaterialInSameFolder)
}
// In this case, we load a basic CGF where the material path is absolute from the dev/ folder,
// for example "samplesproject/materials/test.mtl".
// for example "automatedtesting/materials/test.mtl".
TEST_F(CGFBuilderTest, CGF_MaterialInDifferentFolder)
{
AZStd::string cgfName = "gs_block.cgf";