From 552b4e45e8700cc71bbbea18b5bad167998a74e4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 6 Aug 2014 05:56:10 +0100 Subject: bakemodule didnt like last changes --- .../ClientStack/Linden/Caps/UploadBakedTextureModule.cs | 8 +++----- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 13 +++++-------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs index 19afe97..2da653d 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs @@ -254,18 +254,16 @@ namespace OpenSim.Region.ClientStack.Linden } } - - p.Appearance.WearableCacheItems = cacheItems; - - - + if (m_BakedTextureModule != null) { m_BakedTextureModule.Store(remoteClient.AgentId, cacheItems); p.Appearance.WearableCacheItemsDirty = true; } + else + p.Appearance.WearableCacheItemsDirty = false; } } diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 0e8c7ca..08b6cb4 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -12037,19 +12037,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP ScenePresence p = m_scene.GetScenePresence(AgentId); if (p.Appearance != null) { - if (p.Appearance.WearableCacheItems == null) + if (p.Appearance.WearableCacheItems == null || p.Appearance.WearableCacheItemsDirty) { if (bakedTextureModule != null) { m_log.Debug("[ HandleAgentTextureCached] bakedTextureModule"); try { - if (p.Appearance.WearableCacheItemsDirty) - { - cacheItems = bakedTextureModule.Get(AgentId); - p.Appearance.WearableCacheItems = cacheItems; - p.Appearance.WearableCacheItemsDirty = false; - } + cacheItems = bakedTextureModule.Get(AgentId); + p.Appearance.WearableCacheItems = cacheItems; + p.Appearance.WearableCacheItemsDirty = false; } /* @@ -12074,7 +12071,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - if (p.Appearance.WearableCacheItems != null) + else if (p.Appearance.WearableCacheItems != null) { cacheItems = p.Appearance.WearableCacheItems; } -- cgit v1.1