Moving material type asset PostInit call to be consistent with material asset

Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
Guthrie Adams
2021-10-26 12:24:37 -05:00
parent 0724403f90
commit e632dc3b39
2 changed files with 4 additions and 1 deletions
@@ -188,6 +188,10 @@ namespace AZ
void MaterialTypeAsset::SetReady()
{
m_status = AssetStatus::Ready;
// If this was created dynamically using MaterialTypeAssetCreator (which is what calls SetReady()),
// we need to connect to the AssetBus for reloads.
PostLoadInit();
}
bool MaterialTypeAsset::PostLoadInit()
@@ -43,7 +43,6 @@ namespace AZ
return false;
}
m_asset->PostLoadInit();
m_asset->SetReady();
m_materialShaderResourceGroupLayout = nullptr;