mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 10:45:40 +08:00
Changed the maximum asset name and description lengths to constants. Also, pre-truncate the description of dynamic textures.
This commit is contained in:
@@ -514,6 +514,8 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
|
||||
scene.RegionInfo.RegionID.ToString());
|
||||
asset.Data = assetData;
|
||||
asset.Description = String.Format("URL image : {0}", Url);
|
||||
if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
|
||||
asset.Description = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
|
||||
asset.Local = false;
|
||||
asset.Temporary = ((Disp & DISP_TEMP) != 0);
|
||||
scene.AssetService.Store(asset);
|
||||
|
||||
Reference in New Issue
Block a user