From 025fc982620fa5d337c1ce2d35bcb66bfead2a2a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Sep 2019 15:08:09 +0100 Subject: [PATCH] take unit tests limited settings in consideration on setappearance --- .../CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 240d70b531..92616be1f6 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 // called on textures update public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems) { - if(cacheItems == null) + if(cacheItems == null || cacheItems.Length == 0) return false; // npcs dont have baked cache @@ -436,7 +436,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory } // this may be a current fs bug - for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++) + for (int i = AvatarAppearance.BAKES_COUNT_PV7; i < AvatarAppearance.BAKE_INDICES.Length; i++) { uint idx = AvatarAppearance.BAKE_INDICES[i]; if(updatedFaces.Contains(idx))