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,9 +567,11 @@ namespace MaterialEditor
{
if (m_compilePending)
{
m_materialInstance->Compile();
m_compilePending = false;
AZ::TickBus::Handler::BusDisconnect();
if (m_materialInstance->Compile())
{
m_compilePending = false;
AZ::TickBus::Handler::BusDisconnect();
}
}
}

Loading…
Cancel
Save