Clear prefab templates on new level creations and loads (#2842)
* Clear prefab templates on new level creations and loads Signed-off-by: srikappa-amzn <srikappa@amazon.com> * Fixed failing prefab unit tests after change to clear templates Signed-off-by: srikappa-amzn <srikappa@amazon.com>
This commit is contained in:
+3
-1
@@ -245,7 +245,9 @@ namespace UnitTest
|
||||
m_instanceToTemplateInterface->GenerateDomForInstance(instanceDomBeforeUpdate, *firstInstance);
|
||||
|
||||
//remove instance from instance
|
||||
firstInstance->DetachNestedInstance(addedAlias);
|
||||
AZStd::unique_ptr<Instance> detachedInstance = firstInstance->DetachNestedInstance(addedAlias);
|
||||
ASSERT_TRUE(detachedInstance != nullptr);
|
||||
m_prefabSystemComponent->RemoveLink(detachedInstance->GetLinkId());
|
||||
|
||||
//create document with after change snapshot
|
||||
PrefabDom instanceDomAfterUpdate;
|
||||
|
||||
Reference in New Issue
Block a user