do consider skirt baked texture on validation

avinationmerge
UbitUmarov 2014-10-26 18:53:11 +00:00
parent 932b52f1bf
commit c46c3a27ae
1 changed files with 9 additions and 3 deletions

View File

@ -543,6 +543,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
{ {
// we may have received a full cache // we may have received a full cache
// check same coerence and store // check same coerence and store
wearableCacheValid = true;
for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++) for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++)
{ {
int idx = AvatarAppearance.BAKE_INDICES[i]; int idx = AvatarAppearance.BAKE_INDICES[i];
@ -561,10 +562,15 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
{ {
hits++; hits++;
} }
else
{
wearableCacheValid = false;
break;
}
} }
} }
wearableCacheValid = (hits >= AvatarAppearance.BAKE_INDICES.Length - 1); // skirt is optional wearableCacheValid = (wearableCacheValid && (hits >= AvatarAppearance.BAKE_INDICES.Length - 1));
if (wearableCacheValid) if (wearableCacheValid)
m_log.Debug("[ValidateBakedCache] have valid local cache"); m_log.Debug("[ValidateBakedCache] have valid local cache");
} }