mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* 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
This commit is contained in:
@@ -289,8 +289,21 @@ namespace OpenSim.Framework
|
||||
|
||||
public string ContentType
|
||||
{
|
||||
get { return m_content_type; }
|
||||
set { m_content_type = value; }
|
||||
get
|
||||
{
|
||||
if (!String.IsNullOrEmpty(m_content_type))
|
||||
return m_content_type;
|
||||
else
|
||||
return SLUtil.SLAssetTypeToContentType(m_type);
|
||||
}
|
||||
set
|
||||
{
|
||||
m_content_type = value;
|
||||
|
||||
sbyte type = (sbyte)SLUtil.ContentTypeToSLAssetType(value);
|
||||
if (type != -1)
|
||||
m_type = type;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] SHA1
|
||||
|
||||
Reference in New Issue
Block a user