SH-557 FIX meshes sometimes don't load in a region

Found that we were storing an empty string as a getMesh capability in the case that
we checked for the new url before getting the list of caps from the server
after a teleport. Made sure we didn't overwrite the caps url until we have the
list of caps for the new region after teleport.

Will be post-reviewed by davep
meow-7.2.2
Nyx (Neal Orman) 2011-01-14 13:23:14 -05:00
parent d51d294296
commit 53d03606f1
1 changed files with 1 additions and 1 deletions

View File

@ -2299,7 +2299,7 @@ void LLMeshRepository::notifyLoadedMeshes()
if (gAgent.getRegion())
{ //update capability url
if (gAgent.getRegion()->getName() != region_name)
if (gAgent.getRegion()->getName() != region_name && gAgent.getRegion()->capabilitiesReceived())
{
region_name = gAgent.getRegion()->getName();