diff options
Diffstat (limited to 'OpenSim/Services/AssetService')
-rw-r--r-- | OpenSim/Services/AssetService/AssetService.cs | 11 |
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 | ||