Use LLAppearanceMgr::syncCofVersionAndRefresh() during texture rebake only if the IncrementCOFVersion cap is available

meow-7.2.2
Ansariel 2018-05-26 22:50:47 +02:00
parent 9913364437
commit 726f09e1bb
1 changed files with 8 additions and 1 deletions

View File

@ -10193,7 +10193,14 @@ void handle_rebake_textures(void*)
if (gAgent.getRegion() && gAgent.getRegion()->getCentralBakeVersion())
{
// [SL:KB] - Patch: Appearance-Misc | Checked: 2015-06-27 (Catznip-3.7)
LLAppearanceMgr::instance().syncCofVersionAndRefresh();
if (!gAgent.getRegionCapability("IncrementCOFVersion").empty())
{
LLAppearanceMgr::instance().syncCofVersionAndRefresh();
}
else
{
LLAppearanceMgr::instance().requestServerAppearanceUpdate();
}
// [/SL:KB]
// LLAppearanceMgr::instance().requestServerAppearanceUpdate();
avatar_tex_refresh(gAgentAvatarp); // <FS:CR> FIRE-11800 - Refresh the textures too