diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 2e5c58a..448f7b3 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | |||
@@ -417,9 +417,10 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
417 | { | 417 | { |
418 | wearableCache[idx].CacheId = cacheItems[i].CacheId; | 418 | wearableCache[idx].CacheId = cacheItems[i].CacheId; |
419 | validDirtyBakes++; | 419 | validDirtyBakes++; |
420 | hits++; | 420 | |
421 | //assuming this can only happen if asset is in cache | 421 | //assuming this can only happen if asset is in cache |
422 | } | 422 | } |
423 | hits++; | ||
423 | continue; | 424 | continue; |
424 | } | 425 | } |
425 | 426 | ||
@@ -448,7 +449,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
448 | 449 | ||
449 | // if we got a full set of baked textures save all in BakedTextureModule | 450 | // if we got a full set of baked textures save all in BakedTextureModule |
450 | 451 | ||
451 | if (validDirtyBakes == cacheItems.Length) | 452 | if (validDirtyBakes > 0 && hits == cacheItems.Length) |
452 | { | 453 | { |
453 | IBakedTextureModule m_BakedTextureModule = m_scene.RequestModuleInterface<IBakedTextureModule>(); | 454 | IBakedTextureModule m_BakedTextureModule = m_scene.RequestModuleInterface<IBakedTextureModule>(); |
454 | if (m_BakedTextureModule != null) | 455 | if (m_BakedTextureModule != null) |