take unit tests limited settings in consideration on setappearance

This commit is contained in:
UbitUmarov
2019-09-11 15:08:09 +01:00
parent ecfa3cf7dc
commit 025fc98262

View File

@@ -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))