diff options
author | John Hurliman | 2010-02-20 16:21:13 -0800 |
---|---|---|
committer | John Hurliman | 2010-02-20 16:21:13 -0800 |
commit | 845a390e9308f6b6823c85ac319ecb211f968d4b (patch) | |
tree | 7cc28abeb9396c845db7c3a8f4f04a4eb17af685 /OpenSim/Framework/AssetBase.cs | |
parent | * Fixed SL asset type enum to mime type conversion and added more helper func... (diff) | |
download | opensim-SC-845a390e9308f6b6823c85ac319ecb211f968d4b.zip opensim-SC-845a390e9308f6b6823c85ac319ecb211f968d4b.tar.gz opensim-SC-845a390e9308f6b6823c85ac319ecb211f968d4b.tar.bz2 opensim-SC-845a390e9308f6b6823c85ac319ecb211f968d4b.tar.xz |
* Added a sanity check for missing asset data in LLClientView
* Moved the SL asset type to content type conversion methods from ServerUtils to OpenSim.Framework.SLUtil
* Linked content type to asset type in AssetMetadata
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/AssetBase.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index 212f41d..3e64e47 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs | |||
@@ -289,8 +289,21 @@ namespace OpenSim.Framework | |||
289 | 289 | ||
290 | public string ContentType | 290 | public string ContentType |
291 | { | 291 | { |
292 | get { return m_content_type; } | 292 | get |
293 | set { m_content_type = value; } | 293 | { |
294 | if (!String.IsNullOrEmpty(m_content_type)) | ||
295 | return m_content_type; | ||
296 | else | ||
297 | return SLUtil.SLAssetTypeToContentType(m_type); | ||
298 | } | ||
299 | set | ||
300 | { | ||
301 | m_content_type = value; | ||
302 | |||
303 | sbyte type = (sbyte)SLUtil.ContentTypeToSLAssetType(value); | ||
304 | if (type != -1) | ||
305 | m_type = type; | ||
306 | } | ||
294 | } | 307 | } |
295 | 308 | ||
296 | public byte[] SHA1 | 309 | public byte[] SHA1 |