bug on upload new bakes decision

avinationmerge
UbitUmarov 2014-08-07 19:16:51 +01:00
parent dfa9ba0937
commit 38e2e5942c
1 changed files with 3 additions and 2 deletions

View File

@ -417,9 +417,10 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
{ {
wearableCache[idx].CacheId = cacheItems[i].CacheId; wearableCache[idx].CacheId = cacheItems[i].CacheId;
validDirtyBakes++; validDirtyBakes++;
hits++;
//assuming this can only happen if asset is in cache //assuming this can only happen if asset is in cache
} }
hits++;
continue; continue;
} }
@ -448,7 +449,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// if we got a full set of baked textures save all in BakedTextureModule // if we got a full set of baked textures save all in BakedTextureModule
if (validDirtyBakes == cacheItems.Length) if (validDirtyBakes > 0 && hits == cacheItems.Length)
{ {
IBakedTextureModule m_BakedTextureModule = m_scene.RequestModuleInterface<IBakedTextureModule>(); IBakedTextureModule m_BakedTextureModule = m_scene.RequestModuleInterface<IBakedTextureModule>();
if (m_BakedTextureModule != null) if (m_BakedTextureModule != null)