Better replacement for EntityId checks

Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
This commit is contained in:
Danilo Aimini
2021-09-24 16:35:48 -07:00
parent 80e6a6903a
commit f7e964c91d
@@ -35,7 +35,7 @@ namespace AzToolsFramework::Prefab
{
InstanceOptionalReference focusedInstance;
if (entityId == static_cast<AZ::EntityId>(AZ::EntityId::InvalidEntityId))
if (!entityId.IsValid())
{
PrefabEditorEntityOwnershipInterface* prefabEditorEntityOwnershipInterface =
AZ::Interface<PrefabEditorEntityOwnershipInterface>::Get();
@@ -89,7 +89,7 @@ namespace AzToolsFramework::Prefab
return false;
}
if (entityId == static_cast<AZ::EntityId>(AZ::EntityId::InvalidEntityId))
if (!entityId.IsValid())
{
return false;
}