Whoops, fixup locally experienced crash with lookat beacons.
This commit is contained in:
@@ -550,8 +550,8 @@ void LLHUDEffectLookAt::render()
|
|||||||
static const LLCachedControl<S32> lookAtNames("LookAtNameSystem");
|
static const LLCachedControl<S32> lookAtNames("LookAtNameSystem");
|
||||||
if (lookAtNames < 0) return;
|
if (lookAtNames < 0) return;
|
||||||
std::string text;
|
std::string text;
|
||||||
LLAvatarNameCache::getPNSName(static_cast<LLVOAvatar*>(mSourceObject.get())->getID(), text, lookAtNames);
|
if (!LLAvatarNameCache::getPNSName(static_cast<LLVOAvatar*>(mSourceObject.get())->getID(), text, lookAtNames)) return;
|
||||||
if (0 == text.compare(text.length() - 9, 9, " Resident"))
|
if (text.length() > 9 && 0 == text.compare(text.length() - 9, 9, " Resident"))
|
||||||
text.erase(text.length() - 9);
|
text.erase(text.length() - 9);
|
||||||
LLVector3 offset = gAgentCamera.getCameraPositionAgent() - target;
|
LLVector3 offset = gAgentCamera.getCameraPositionAgent() - target;
|
||||||
offset.normalize();
|
offset.normalize();
|
||||||
|
|||||||
Reference in New Issue
Block a user