From 7305dadba28b0a89873bca6d54e5247233f0a06b Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 10 Sep 2008 03:19:57 +0000 Subject: Mantis#2153. Thank you kindly, Godfrey for a patch that solves: osSetDynamicTextureData() produces error on console if ExtraParams passed empty string --- OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index b410eec..ad58069 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs @@ -360,6 +360,10 @@ namespace OpenSim.Region.ScriptEngine.Common IDynamicTextureManager textureManager = World.RequestModuleInterface(); if (textureManager != null) { + if (extraParams == String.Empty) + { + extraParams = "256"; + } UUID createdTexture = textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, extraParams, timer); @@ -383,6 +387,10 @@ namespace OpenSim.Region.ScriptEngine.Common IDynamicTextureManager textureManager = World.RequestModuleInterface(); if (textureManager != null) { + if (extraParams == String.Empty) + { + extraParams = "256"; + } UUID createdTexture = textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, extraParams, timer, true, (byte) alpha); -- cgit v1.1