Skip to content
Snippets Groups Projects
Commit 290b72d7 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix crash during shutdown from lookat clamp

parent 0c16129e
No related branches found
No related tags found
No related merge requests found
...@@ -432,7 +432,7 @@ BOOL LLHUDEffectLookAt::setLookAt(ELookAtType target_type, LLViewerObject *objec ...@@ -432,7 +432,7 @@ BOOL LLHUDEffectLookAt::setLookAt(ELookAtType target_type, LLViewerObject *objec
} }
} }
static LLCachedControl<bool> clamp_lookat_enabled(gSavedSettings, "AlchemyLookAtClampEnabled", false); static LLCachedControl<bool> clamp_lookat_enabled(gSavedSettings, "AlchemyLookAtClampEnabled", false);
bool clamp_lookat = clamp_lookat_enabled && !looking_at_self && bool clamp_lookat = clamp_lookat_enabled && isAgentAvatarValid() && !looking_at_self &&
(*mAttentions)[target_type].mName != "Respond" && (*mAttentions)[target_type].mName != "Respond" &&
(*mAttentions)[target_type].mName != "Conversation" && (*mAttentions)[target_type].mName != "Conversation" &&
(*mAttentions)[target_type].mName != "AutoListen"; (*mAttentions)[target_type].mName != "AutoListen";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment