ATOM-15287 Materials Disappear When Hot Reloading Parent Materials (#1532)

The issue was because the material wasn't compiled when creating the draw packet
main
Qing Tao 5 years ago committed by GitHub
parent f0c1420f49
commit c29cfaafa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -567,11 +567,13 @@ namespace MaterialEditor
{
if (m_compilePending)
{
m_materialInstance->Compile();
if (m_materialInstance->Compile())
{
m_compilePending = false;
AZ::TickBus::Handler::BusDisconnect();
}
}
}
void MaterialDocument::SourceFileChanged(AZStd::string relativePath, AZStd::string scanFolder, AZ::Uuid sourceUUID)
{

Loading…
Cancel
Save