Merge pull request #4289 from aws-lumberyard-dev/daimini/FocusMode/setup_fix

LYN-6796 | Focus Mode - Fix to edge case on uninitialized handler
This commit is contained in:
Chris Galvan
2021-09-23 14:17:16 -05:00
committed by GitHub
@@ -83,6 +83,12 @@ namespace AzToolsFramework::Prefab
bool PrefabFocusHandler::IsOwningPrefabBeingFocused(AZ::EntityId entityId)
{
if (!m_focusedInstance.has_value())
{
// PrefabFocusHandler has not been initialized yet.
return false;
}
if (entityId == AZ::EntityId())
{
return false;