Integrating up through commit 90f050496

This commit is contained in:
alexpete
2021-04-07 14:03:29 -07:00
parent 8f2ed080a9
commit c2cbd430fe
2694 changed files with 285622 additions and 176874 deletions
@@ -75,18 +75,18 @@ namespace UnitTest
EntityAlias entityAlias = entityAliasRef.value();
//update template
m_instanceToTemplateInterface->PatchEntityInTemplate(patch, entityAlias, templateId);
ASSERT_TRUE(m_instanceToTemplateInterface->PatchEntityInTemplate(patch, entityAlias, templateId));
//undo change
instanceEntityUndo.Undo();
m_instanceUpdateExecutorInterface->UpdateTemplateInstancesInQueue();
// verify template updated correctly
//instantiate second instance for checking if propogation works
AZStd::unique_ptr<Instance> secondInstance = m_prefabSystemComponent->InstantiatePrefab(templateId);
ASSERT_TRUE(secondInstance);
secondInstance->InitializeNestedEntities();
secondInstance->ActivateNestedEntities();
ValidateInstanceEntitiesActive(*secondInstance);
//get the values from the transform on the entity
AZ::EntityId secondNewEntity = secondInstance->GetEntityId(entityAlias);
@@ -136,6 +136,7 @@ namespace UnitTest
//undo change
instanceEntityAddUndo.Undo();
m_instanceUpdateExecutorInterface->UpdateTemplateInstancesInQueue();
//get the entity id
AZStd::vector<AZ::EntityId> entityIdVector;
@@ -188,6 +189,7 @@ namespace UnitTest
//undo change
instanceEntityRemoveUndo.Undo();
m_instanceUpdateExecutorInterface->UpdateTemplateInstancesInQueue();
//get the entity id
AZStd::vector<AZ::EntityId> entityIdVector;