diff options
Diffstat (limited to 'OpenSim')
-rwxr-xr-x | OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 240d70b..92616be 100755 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | |||
@@ -354,7 +354,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
354 | // called on textures update | 354 | // called on textures update |
355 | public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems) | 355 | public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems) |
356 | { | 356 | { |
357 | if(cacheItems == null) | 357 | if(cacheItems == null || cacheItems.Length == 0) |
358 | return false; | 358 | return false; |
359 | 359 | ||
360 | // npcs dont have baked cache | 360 | // npcs dont have baked cache |
@@ -436,7 +436,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
436 | } | 436 | } |
437 | 437 | ||
438 | // this may be a current fs bug | 438 | // this may be a current fs bug |
439 | for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++) | 439 | for (int i = AvatarAppearance.BAKES_COUNT_PV7; i < AvatarAppearance.BAKE_INDICES.Length; i++) |
440 | { | 440 | { |
441 | uint idx = AvatarAppearance.BAKE_INDICES[i]; | 441 | uint idx = AvatarAppearance.BAKE_INDICES[i]; |
442 | if(updatedFaces.Contains(idx)) | 442 | if(updatedFaces.Contains(idx)) |