Remove undefined behavior.

Signed-off-by: John <jonawals@amazon.com>
This commit is contained in:
John
2021-10-13 19:00:40 +01:00
parent 06910a7c82
commit f9740ae25c
2 changed files with 6 additions and 1 deletions
@@ -138,6 +138,11 @@ namespace AzToolsFramework
bool EntityIdUnderCursor::IsPrefabEntity() const
{
if (m_entityId == AZ::EntityId())
{
return false;
}
return m_entityId != m_rootEntityId;
}
@@ -45,7 +45,7 @@ namespace AzToolsFramework
AZ::EntityId GetRootEntityId() const;
//! Returns true if the entity id under the cursor is part of a prefab, otherwise false.
//! @note In the case of no entity id under the cursor, true is returned (although consider this behavior undefined).
//! @note In the case of no entity id under the cursor, false is returned.
bool IsPrefabEntity() const;
private: