From f6168ded4773810e1875ac0f12a396a6010e6aee Mon Sep 17 00:00:00 2001 From: BlueWall Date: Fri, 6 Mar 2015 21:10:45 -0500 Subject: [PATCH] Remove references to MAX_ASSET_DESC from the dynamic texture module, hardcode to 128 as in other inventory modules. --- .../Scripting/DynamicTexture/DynamicTextureModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs index 28e53f7967..a686a4d730 100644 --- a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs @@ -514,8 +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); + if (asset.Description.Length > 128) + asset.Description = asset.Description.Substring(0, 128); asset.Local = true; // dynamic images aren't saved in the assets server asset.Temporary = ((Disp & DISP_TEMP) != 0); scene.AssetService.Store(asset); // this will only save the asset in the local asset cache