Code/Framework/AzToolsFramework
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -160,9 +160,6 @@ namespace UnitTest
|
||||
|
||||
ASSERT_TRUE(secondRootInstance);
|
||||
|
||||
// Find the new instances versions of the new and referenced entities using the aliases we saved
|
||||
AZ::EntityId secondNewEntityId = secondRootInstance->GetEntityId(newEntityAlias);
|
||||
|
||||
InstanceOptionalReference secondNestedInstance = secondRootInstance->FindNestedInstance(nestedAlias);
|
||||
ASSERT_TRUE(secondNestedInstance);
|
||||
AZ::EntityId secondReferencedEntityId = secondNestedInstance->get().GetEntityId(referencedEntityAlias);
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace UnitTest
|
||||
PrefabDomUtils::FindPrefabDomValue(valueADom, PrefabDomUtils::LinkIdName);
|
||||
PrefabDomValueConstReference expectedNestedInstanceDomLinkId =
|
||||
PrefabDomUtils::FindPrefabDomValue(valueBDom, PrefabDomUtils::LinkIdName);
|
||||
ComparePrefabDomValues(actualNestedInstanceDomLinkId, actualNestedInstanceDomLinkId);
|
||||
ComparePrefabDomValues(actualNestedInstanceDomLinkId, expectedNestedInstanceDomLinkId);
|
||||
}
|
||||
|
||||
if (shouldCompareContainerEntities)
|
||||
|
||||
@@ -99,7 +99,6 @@ namespace UnitTest
|
||||
//create single entity
|
||||
AZ::Entity* newEntity = CreateEntity("New Entity", false);
|
||||
ASSERT_TRUE(newEntity);
|
||||
AZ::EntityId entityId = newEntity->GetId();
|
||||
|
||||
//create a first instance where the entity will be added
|
||||
AZStd::unique_ptr<Instance> testInstance = m_prefabSystemComponent->CreatePrefab({}, {}, "test/path");
|
||||
|
||||
Reference in New Issue
Block a user