do consider skirt baked texture on validation
parent
932b52f1bf
commit
c46c3a27ae
|
@ -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];
|
||||||
|
@ -555,16 +556,21 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
wearableCache[idx].TextureAsset.Temporary = true;
|
wearableCache[idx].TextureAsset.Temporary = true;
|
||||||
wearableCache[idx].TextureAsset.Local = true;
|
wearableCache[idx].TextureAsset.Local = true;
|
||||||
cache.Store(wearableCache[idx].TextureAsset);
|
cache.Store(wearableCache[idx].TextureAsset);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (cache.GetCached((wearableCache[idx].TextureID).ToString()) != null)
|
else if (cache.GetCached((wearableCache[idx].TextureID).ToString()) != null)
|
||||||
{
|
{
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue