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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user