mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
revert changes to asset desc size, my bad.. this field will possible go away in future
This commit is contained in:
@@ -51,8 +51,7 @@ namespace OpenSim.Framework
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public static readonly int MAX_ASSET_NAME = 64;
|
||||
public static readonly int MAX_ASSET_DESC = 127;
|
||||
public static readonly int MAX_LMASSET_DESC = 255;
|
||||
public static readonly int MAX_ASSET_DESC = 64;
|
||||
|
||||
/// <summary>
|
||||
/// Data of the Asset
|
||||
@@ -306,18 +305,7 @@ namespace OpenSim.Framework
|
||||
public string Description
|
||||
{
|
||||
get { return m_description; }
|
||||
set
|
||||
{
|
||||
if(value.Length > AssetBase.MAX_LMASSET_DESC)
|
||||
{
|
||||
if(m_type == (sbyte) AssetType.Landmark)
|
||||
m_description = value.Substring(0, AssetBase.MAX_LMASSET_DESC);
|
||||
else
|
||||
m_description = value.Substring(0, AssetBase.MAX_ASSET_DESC);
|
||||
}
|
||||
else
|
||||
m_description = value;
|
||||
}
|
||||
set { m_description = value; }
|
||||
}
|
||||
|
||||
public DateTime CreationDate
|
||||
|
||||
Reference in New Issue
Block a user