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/SQLite/SQLiteAssetData.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/SQLite/SQLiteAssetData.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs index 9c2bd2e..9fbd9c7 100644 --- a/OpenSim/Data/SQLite/SQLiteAssetData.cs +++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs | |||
@@ -143,12 +143,12 @@ namespace OpenSim.Data.SQLite | |||
143 | } | 143 | } |
144 | 144 | ||
145 | string assetDescription = asset.Description; | 145 | string assetDescription = asset.Description; |
146 | if (asset.Description.Length > AssetBase.MAX_ASSET_DESC) | 146 | if(assetDescription.Length > AssetBase.MAX_LMASSET_DESC) |
147 | { | 147 | { |
148 | assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC); | 148 | if(asset.Type == (sbyte) AssetType.Landmark) |
149 | m_log.WarnFormat( | 149 | assetDescription = assetDescription.Substring(0, AssetBase.MAX_LMASSET_DESC); |
150 | "[ASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add", | 150 | else |
151 | asset.Description, asset.ID, asset.Description.Length, assetDescription.Length); | 151 | assetDescription = assetDescription.Substring(0, AssetBase.MAX_ASSET_DESC); |
152 | } | 152 | } |
153 | 153 | ||
154 | //m_log.Info("[ASSET DB]: Creating Asset " + asset.FullID.ToString()); | 154 | //m_log.Info("[ASSET DB]: Creating Asset " + asset.FullID.ToString()); |