aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/AssetCache.cs
diff options
context:
space:
mode:
authorJeff Ames2007-11-18 13:50:46 +0000
committerJeff Ames2007-11-18 13:50:46 +0000
commitd10c79d4216436fd2a5056dbf853f317967202af (patch)
tree2474bfe5d0f56f624a19ff112807233e5e335f08 /OpenSim/Framework/Communications/Cache/AssetCache.cs
parent* Found several cases where prim set physical were not subscribing to physics... (diff)
downloadopensim-SC_OLD-d10c79d4216436fd2a5056dbf853f317967202af.zip
opensim-SC_OLD-d10c79d4216436fd2a5056dbf853f317967202af.tar.gz
opensim-SC_OLD-d10c79d4216436fd2a5056dbf853f317967202af.tar.bz2
opensim-SC_OLD-d10c79d4216436fd2a5056dbf853f317967202af.tar.xz
first stab at implementation of CopyInventoryItem
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AssetCache.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetCache.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs
index 0ea33ff..99041c1 100644
--- a/OpenSim/Framework/Communications/Cache/AssetCache.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs
@@ -239,6 +239,17 @@ namespace OpenSim.Framework.Communications.Cache
239 //Todo should delete it from memory too 239 //Todo should delete it from memory too
240 } 240 }
241 241
242 public AssetBase CopyAsset(LLUUID assetID)
243 {
244 AssetBase asset = GetAsset(assetID);
245 if (asset == null)
246 return null;
247
248 asset.FullID = LLUUID.Random(); // TODO: check for conflicts
249 AddAsset(asset);
250 return asset;
251 }
252
242 /// <summary> 253 /// <summary>
243 /// 254 ///
244 /// </summary> 255 /// </summary>