aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/AssetService/AssetService.cs
diff options
context:
space:
mode:
authorMelanie2010-05-09 18:03:57 +0100
committerMelanie2010-05-09 18:03:57 +0100
commit6a3e1734e67b4d6d4a9144e4f86658297eef11a6 (patch)
tree7132abbe44017ebe97034c1a4149fad743ce03a7 /OpenSim/Services/AssetService/AssetService.cs
parentMerge branch 'master' into careminster-presence-refactor (diff)
parentAdd Delete handler to SQLite (NG) (diff)
downloadopensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.zip
opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.gz
opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.bz2
opensim-SC_OLD-6a3e1734e67b4d6d4a9144e4f86658297eef11a6.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/AssetService/AssetService.cs')
-rw-r--r--OpenSim/Services/AssetService/AssetService.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs
index 2114933..4fc38f3 100644
--- a/OpenSim/Services/AssetService/AssetService.cs
+++ b/OpenSim/Services/AssetService/AssetService.cs
@@ -156,6 +156,17 @@ namespace OpenSim.Services.AssetService
156 156
157 public bool Delete(string id) 157 public bool Delete(string id)
158 { 158 {
159 UUID assetID;
160 if (!UUID.TryParse(id, out assetID))
161 return false;
162
163 AssetBase asset = m_Database.GetAsset(assetID);
164 if (asset == null)
165 return false;
166
167 if ((int)(asset.Flags & AssetFlags.Maptile) != 0)
168 return m_Database.Delete(id);
169
159 return false; 170 return false;
160 } 171 }
161 172