Selecting entities when duplicating prefabs (#2995)

* Selecting entitie when duplicating prefabs

Signed-off-by: mnaumov <mnaumov@amazon.com>

* PR feedback

Signed-off-by: mnaumov <mnaumov@amazon.com>
This commit is contained in:
AMZN-mnaumov
2021-08-10 16:40:51 -07:00
committed by GitHub
parent 29c2ee9b0e
commit 25844a9ed6
@@ -1727,6 +1727,7 @@ namespace AzToolsFramework
AliasPath absoluteInstancePath = commonOwningInstance.GetAbsoluteInstanceAliasPath();
absoluteInstancePath.Append(newInstanceAlias);
absoluteInstancePath.Append(PrefabDomUtils::ContainerEntityName);
AZ::EntityId newEntityId = InstanceEntityIdMapper::GenerateEntityIdForAliasPath(absoluteInstancePath);
duplicatedEntityIds.push_back(newEntityId);