bug fix and don't send to xbakes if requesting rebakes
parent
afa2466951
commit
7723b1bcd3
|
@ -420,16 +420,18 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
wearableCache[idx].TextureAsset = null;
|
wearableCache[idx].TextureAsset = null;
|
||||||
if (cache != null)
|
if (cache != null)
|
||||||
wearableCache[idx].TextureAsset = cache.GetCached(face.TextureID.ToString());
|
wearableCache[idx].TextureAsset = cache.GetCached(face.TextureID.ToString());
|
||||||
|
|
||||||
if (wearableCache[idx].TextureAsset != null)
|
if (wearableCache[idx].TextureAsset != null)
|
||||||
{
|
{
|
||||||
wearableCache[idx].CacheId = cacheItems[i].CacheId;
|
if ( wearableCache[idx].TextureID != face.TextureID ||
|
||||||
wearableCache[idx].TextureID = face.TextureID;
|
wearableCache[idx].CacheId != cacheItems[i].CacheId)
|
||||||
validDirtyBakes++;
|
validDirtyBakes++;
|
||||||
|
|
||||||
|
wearableCache[idx].TextureID = face.TextureID;
|
||||||
|
wearableCache[idx].CacheId = cacheItems[i].CacheId;
|
||||||
hits++;
|
hits++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -445,10 +447,14 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
|
|
||||||
sp.Appearance.WearableCacheItems = wearableCache;
|
sp.Appearance.WearableCacheItems = wearableCache;
|
||||||
|
|
||||||
// if we got a full set of baked textures save all in BakedTextureModule
|
if (missing.Count > 0)
|
||||||
|
|
||||||
if (validDirtyBakes > 0 && hits == cacheItems.Length)
|
|
||||||
{
|
{
|
||||||
|
foreach (UUID id in missing)
|
||||||
|
sp.ControllingClient.SendRebakeAvatarTextures(id);
|
||||||
|
}
|
||||||
|
else if (validDirtyBakes > 0 && hits == cacheItems.Length)
|
||||||
|
{
|
||||||
|
// if we got a full set of baked textures save all in BakedTextureModule
|
||||||
if (m_BakedTextureModule != null)
|
if (m_BakedTextureModule != null)
|
||||||
{
|
{
|
||||||
m_log.Debug("[UpdateBakedCache] uploading to bakedModule cache");
|
m_log.Debug("[UpdateBakedCache] uploading to bakedModule cache");
|
||||||
|
@ -466,11 +472,6 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(missing.Count > 0)
|
|
||||||
{
|
|
||||||
foreach(UUID id in missing)
|
|
||||||
sp.ControllingClient.SendRebakeAvatarTextures(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
m_log.Debug("[UpdateBakedCache] cache hits: " + hits.ToString() + " changed entries: " + validDirtyBakes.ToString() + " rebakes " + missing.Count);
|
m_log.Debug("[UpdateBakedCache] cache hits: " + hits.ToString() + " changed entries: " + validDirtyBakes.ToString() + " rebakes " + missing.Count);
|
||||||
|
|
Loading…
Reference in New Issue