Shooting at AIS3/Coro/Appearance bugs: Actually correct the local COF version to match the expected version we received from the server before issuing the appearance update request again

meow-7.2.2
Ansariel 2016-05-11 11:54:34 +02:00
parent 0947819f64
commit 74eb8428d2
1 changed files with 10 additions and 0 deletions

View File

@ -3880,6 +3880,16 @@ void LLAppearanceMgr::serverAppearanceUpdateCoro()
S32 expectedCofVersion = result["expected"].asInteger();
LL_WARNS("Avatar") << "Server expected " << expectedCofVersion << " as COF version" << LL_ENDL;
// <FS:Ansariel> Correct local COF version to match the expected version
LLViewerInventoryCategory* cof_cat = gInventory.getCategory(LLAppearanceMgr::instance().getCOF());
if (cof_cat)
{
cof_cat->setVersion(expectedCofVersion);
gAgentAvatarp->mLastUpdateRequestCOFVersion = expectedCofVersion;
gAgentAvatarp->mLastUpdateReceivedCOFVersion = expectedCofVersion;
}
// </FS:Ansariel>
bRetry = true;
// Wait for a 1/2 second before trying again. Just to keep from asking too quickly.
if (++retryCount > BAKE_RETRY_MAX_COUNT)