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:
@@ -309,6 +309,7 @@ namespace UnitTest
|
||||
// and use the updated enclosing Instance to update the PrefabDom of Template.
|
||||
AZStd::unique_ptr<Instance> detachedInstance = newEnclosingInstance->DetachNestedInstance(nestedInstanceAliases.front());
|
||||
ASSERT_TRUE(detachedInstance);
|
||||
m_prefabSystemComponent->RemoveLink(detachedInstance->GetLinkId());
|
||||
|
||||
PrefabDom updatedTemplateDom;
|
||||
ASSERT_TRUE(PrefabDomUtils::StoreInstanceInPrefabDom(*newEnclosingInstance, updatedTemplateDom));
|
||||
|
||||
Reference in New Issue
Block a user