diff options
author | UbitUmarov | 2016-11-22 01:34:07 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-22 01:34:07 +0000 |
commit | 7524c7729f820a510278a712e658b0865f83d079 (patch) | |
tree | 2907caa39b1f35e34730836067c6b8708527c478 /OpenSim/Data/MySQL/MySQLAssetData.cs | |
parent | remove a wrong virtual dec ( no overides, and cant really have if used on a c... (diff) | |
download | opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.zip opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.gz opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.bz2 opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.xz |
change asset description max size
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLAssetData.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index 1488e1a..83e7e4c 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs | |||
@@ -170,6 +170,14 @@ namespace OpenSim.Data.MySQL | |||
170 | } | 170 | } |
171 | 171 | ||
172 | string assetDescription = asset.Description; | 172 | string assetDescription = asset.Description; |
173 | if(assetDescription.Length > AssetBase.MAX_LMASSET_DESC) | ||
174 | { | ||
175 | if(asset.Type == (sbyte) AssetType.Landmark) | ||
176 | assetDescription = assetDescription.Substring(0, AssetBase.MAX_LMASSET_DESC); | ||
177 | else | ||
178 | assetDescription = assetDescription.Substring(0, AssetBase.MAX_ASSET_DESC); | ||
179 | } | ||
180 | |||
173 | if (asset.Description.Length > AssetBase.MAX_ASSET_DESC) | 181 | if (asset.Description.Length > AssetBase.MAX_ASSET_DESC) |
174 | { | 182 | { |
175 | assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC); | 183 | assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC); |