Remove an unnecessary check in the if statement
This commit is contained in:
@@ -644,8 +644,7 @@ namespace AzToolsFramework
|
||||
|
||||
// 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))
|
||||
if (commonOwningInstance->get().GetContainerEntityId() == firstEntityIdToDelete)
|
||||
{
|
||||
commonOwningInstance = commonOwningInstance->get().GetParentInstance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user