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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user