diff options
author | Diva Canto | 2011-05-02 08:48:55 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-02 08:48:55 -0700 |
commit | 10180760b741edf22cec23db0ec490669407425f (patch) | |
tree | 66f52dc38657213e03470aab161a0d2ffa3fffe6 /OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps | |
parent | Start to drill down on GetTexture. Read the config and do different things. (diff) | |
download | opensim-SC_OLD-10180760b741edf22cec23db0ec490669407425f.zip opensim-SC_OLD-10180760b741edf22cec23db0ec490669407425f.tar.gz opensim-SC_OLD-10180760b741edf22cec23db0ec490669407425f.tar.bz2 opensim-SC_OLD-10180760b741edf22cec23db0ec490669407425f.tar.xz |
Works!
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs | 4 |
2 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 7a7964e..7945d5e 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -78,7 +78,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
78 | public GetClientDelegate GetClient = null; | 78 | public GetClientDelegate GetClient = null; |
79 | 79 | ||
80 | private bool m_persistBakedTextures = false; | 80 | private bool m_persistBakedTextures = false; |
81 | private IAssetService m_assetCache; | 81 | private IAssetService m_assetService; |
82 | private bool m_dumpAssetsToFile; | 82 | private bool m_dumpAssetsToFile; |
83 | private string m_regionName; | 83 | private string m_regionName; |
84 | private object m_fetchLock = new Object(); | 84 | private object m_fetchLock = new Object(); |
@@ -95,6 +95,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
95 | m_persistBakedTextures = sconfig.GetBoolean("PersistBakedTextures", m_persistBakedTextures); | 95 | m_persistBakedTextures = sconfig.GetBoolean("PersistBakedTextures", m_persistBakedTextures); |
96 | } | 96 | } |
97 | 97 | ||
98 | m_assetService = m_Scene.AssetService; | ||
99 | m_regionName = m_Scene.RegionInfo.RegionName; | ||
100 | |||
98 | RegisterHandlers(); | 101 | RegisterHandlers(); |
99 | 102 | ||
100 | AddNewInventoryItem = m_Scene.AddUploadedInventoryItem; | 103 | AddNewInventoryItem = m_Scene.AddUploadedInventoryItem; |
@@ -347,7 +350,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
347 | asset.Data = data; | 350 | asset.Data = data; |
348 | asset.Temporary = true; | 351 | asset.Temporary = true; |
349 | asset.Local = !m_persistBakedTextures; // Local assets aren't persisted, non-local are | 352 | asset.Local = !m_persistBakedTextures; // Local assets aren't persisted, non-local are |
350 | m_assetCache.Store(asset); | 353 | m_assetService.Store(asset); |
351 | } | 354 | } |
352 | 355 | ||
353 | /// <summary> | 356 | /// <summary> |
@@ -476,8 +479,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
476 | asset.Data = data; | 479 | asset.Data = data; |
477 | if (AddNewAsset != null) | 480 | if (AddNewAsset != null) |
478 | AddNewAsset(asset); | 481 | AddNewAsset(asset); |
479 | else if (m_assetCache != null) | 482 | else if (m_assetService != null) |
480 | m_assetCache.Store(asset); | 483 | m_assetService.Store(asset); |
481 | 484 | ||
482 | InventoryItemBase item = new InventoryItemBase(); | 485 | InventoryItemBase item = new InventoryItemBase(); |
483 | item.Owner = m_HostCapsObj.AgentID; | 486 | item.Owner = m_HostCapsObj.AgentID; |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs index 4436d4c..14160ae 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCapsModule.cs | |||
@@ -32,6 +32,7 @@ using System.Reflection; | |||
32 | using log4net; | 32 | using log4net; |
33 | using Nini.Config; | 33 | using Nini.Config; |
34 | using OpenMetaverse; | 34 | using OpenMetaverse; |
35 | using Mono.Addins; | ||
35 | 36 | ||
36 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
37 | using OpenSim.Region.Framework; | 38 | using OpenSim.Region.Framework; |
@@ -39,9 +40,12 @@ using OpenSim.Region.Framework.Interfaces; | |||
39 | using OpenSim.Region.Framework.Scenes; | 40 | using OpenSim.Region.Framework.Scenes; |
40 | using Caps = OpenSim.Framework.Capabilities.Caps; | 41 | using Caps = OpenSim.Framework.Capabilities.Caps; |
41 | 42 | ||
43 | [assembly: Addin("LindenCaps", "0.1")] | ||
44 | [assembly: AddinDependency("OpenSim", "0.5")] | ||
42 | namespace OpenSim.Region.ClientStack.Linden | 45 | namespace OpenSim.Region.ClientStack.Linden |
43 | { | 46 | { |
44 | 47 | ||
48 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] | ||
45 | public class BunchOfCapsModule : INonSharedRegionModule | 49 | public class BunchOfCapsModule : INonSharedRegionModule |
46 | { | 50 | { |
47 | private static readonly ILog m_log = | 51 | private static readonly ILog m_log = |