diff options
author | andreykproductengine <akleshchev@productengine.com> | 2015-04-08 17:05:47 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2015-04-08 17:05:47 +0300 |
commit | 00f18efe75cdf5d70b2f7f66ce702fc3bd25dd5d (patch) | |
tree | a19ef56db62fd049b76f9cd76787f04ca21bf31c | |
parent | ca446ad0b771fa4380bfdb671b1dc29e70a993bd (diff) |
MAINT-5063 FIXED SLurl display text shows name of parcel in adjacent region when mousing over parcel after region crossing
-rwxr-xr-x | indra/newview/llviewerparcelmgr.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index d574dec11d..449ac04ae2 100755 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -1594,8 +1594,14 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use } else if (local_id == parcel_mgr.mAgentParcel->getLocalID()) { - // updated agent parcel - parcel_mgr.mAgentParcel->unpackMessage(msg); + // Parcels in different regions can have same ids. + LLViewerRegion* parcel_region = LLWorld::getInstance()->getRegion( msg->getSender() ); + LLViewerRegion* agent_region = gAgent.getRegion(); + if (parcel_region && agent_region && parcel_region->getRegionID() == agent_region->getRegionID()) + { + // updated agent parcel + parcel_mgr.mAgentParcel->unpackMessage(msg); + } } } |