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

LYN-6796 | Focus Mode - Fix to edge case on uninitialized handler
monroegm-disable-blank-issue-2
Chris Galvan 4 years ago committed by GitHub
commit 8a80b73918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save