Improved a comment

This commit is contained in:
srikappa
2021-05-13 14:45:06 -07:00
parent cd4be3a708
commit b92a68f5a4
2 changed files with 5 additions and 4 deletions
@@ -642,7 +642,8 @@ namespace AzToolsFramework
AZ::EntityId firstEntityIdToDelete = entityIds[0];
InstanceOptionalReference commonOwningInstance = GetOwnerInstanceByEntityId(firstEntityIdToDelete);
// If the first entity id is that of an instance, we need to delete that instance from it's parent.
// If the first entity id is a container entity id, then we need to mark its parent as the common owning instance because you
// cannot detete an instance from itself.
if (commonOwningInstance->get().GetContainerEntityId() == firstEntityIdToDelete &&
!IsLevelInstanceContainerEntity(firstEntityIdToDelete))
{
@@ -28,9 +28,9 @@ namespace AzToolsFramework
namespace Prefab
{
using PrefabOperationResult = AZ::Outcome<void, AZStd::string>;
using PrefabRequestResult = AZ::Outcome<bool, AZStd::string>;
using PrefabEntityResult = AZ::Outcome<AZ::EntityId, AZStd::string>;
typedef AZ::Outcome<void, AZStd::string> PrefabOperationResult;
typedef AZ::Outcome<bool, AZStd::string> PrefabOperationResult;
typedef AZ::Outcome<AZ::EntityId, AZStd::string> PrefabEntityResult;
/*!
* PrefabPublicInterface