ATOM-15287 Materials Disappear When Hot Reloading Parent Materials (#1532)
The issue was because the material wasn't compiled when creating the draw packet
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user