summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-12-08 21:29:44 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-12-08 21:29:44 +0200
commita94b9a40095c88849e78a1c9f899d612fb364abf (patch)
tree95adb51534bc6e84b7743877c8f7bb45fd1ed223 /indra/newview/llagent.cpp
parent0a4cf47f5fa3f9e95b9a865a0d99e5f21eacbc85 (diff)
SL-14493 Fixed missing display names
Name lookup was not inited with capability properly
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 68f2ddeb08..6e45cfad8e 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -958,6 +958,15 @@ void LLAgent::setRegion(LLViewerRegion *regionp)
// Update all of the regions.
LLWorld::getInstance()->updateAgentOffset(mAgentOriginGlobal);
+
+ if (regionp->capabilitiesReceived())
+ {
+ LLAppViewer::instance()->updateNameLookupUrl();
+ }
+ else
+ {
+ regionp->setCapabilitiesReceivedCallback([](LLUUID region_id) {LLAppViewer::instance()->updateNameLookupUrl(); });
+ }
}
// Pass new region along to metrics components that care about this level of detail.