Pass changes: Addressing PR feedback

This commit is contained in:
antonmic
2021-06-10 12:50:38 -07:00
parent 886931f2a9
commit 2a982fa4b2
14 changed files with 109 additions and 59 deletions
@@ -59,7 +59,7 @@ namespace AZ
child->m_parent = this;
child->OnHierarchyChange();
QueueForBuild();
QueueForBuildAndInitialization();
// Notify pipeline
if (m_pipeline)
@@ -249,11 +249,11 @@ namespace AZ
void ParentPass::CreateChildPasses()
{
// The already created flag prevents this function from executing multiple times a frame
if (!m_flags.m_createChildren || m_flags.m_alreadyCreated)
if (!m_flags.m_createChildren || m_flags.m_alreadyCreatedChildren)
{
return;
}
m_flags.m_alreadyCreated = true;
m_flags.m_alreadyCreatedChildren = true;
RemoveChildren();
CreatePassesFromTemplate();