diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-02-04 21:11:43 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-02-05 18:50:31 +0200 |
commit | 74d2ed918dd185cbc47ed64f78be76ae6b94a60f (patch) | |
tree | 15be271670e3cd3d8891485c8fe2f3d539d6e0d3 /indra/newview/llmeshrepository.cpp | |
parent | b84f3ff6b129cd71955bcb1fc885491b7002f87f (diff) |
#3488 Speed up nearby avatar loading after a tp
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r-- | indra/newview/llmeshrepository.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 699bec539c..fdc7520d4d 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -2313,7 +2313,11 @@ EMeshProcessingResult LLMeshRepoThread::lodReceived(const LLVolumeParams& mesh_p LLPointer<LLMeshSkinInfo> skin_info = nullptr; { LLMutexLock lock(mSkinMapMutex); - skin_info = mSkinMap[mesh_params.getSculptID()]; + skin_map::iterator iter = mSkinMap.find(mesh_params.getSculptID()); + if (iter != mSkinMap.end()) + { + skin_info = iter->second; + } } if (skin_info.notNull() && isAgentAvatarValid()) { |