aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorCharles Krinke2008-09-10 03:19:57 +0000
committerCharles Krinke2008-09-10 03:19:57 +0000
commit7305dadba28b0a89873bca6d54e5247233f0a06b (patch)
tree609a43ccbc044aa6739aebdc2e8cb57ab1562956 /OpenSim/Region/ScriptEngine/Shared/Api
parentImplementation of llDetectedGroup for DotNetEngine. (diff)
downloadopensim-SC-7305dadba28b0a89873bca6d54e5247233f0a06b.zip
opensim-SC-7305dadba28b0a89873bca6d54e5247233f0a06b.tar.gz
opensim-SC-7305dadba28b0a89873bca6d54e5247233f0a06b.tar.bz2
opensim-SC-7305dadba28b0a89873bca6d54e5247233f0a06b.tar.xz
Mantis#2153. Thank you kindly, Godfrey for a patch that solves:
osSetDynamicTextureData() produces error on console if ExtraParams passed empty string
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 0f598ea..07d96c6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -229,6 +229,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
229 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); 229 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
230 if (textureManager != null) 230 if (textureManager != null)
231 { 231 {
232 if (extraParams == String.Empty)
233 {
234 extraParams = "256";
235 }
232 UUID createdTexture = 236 UUID createdTexture =
233 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, 237 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data,
234 extraParams, timer); 238 extraParams, timer);
@@ -258,6 +262,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
258 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); 262 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
259 if (textureManager != null) 263 if (textureManager != null)
260 { 264 {
265 if (extraParams == String.Empty)
266 {
267 extraParams = "256";
268 }
261 UUID createdTexture = 269 UUID createdTexture =
262 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, 270 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data,
263 extraParams, timer, true, (byte) alpha); 271 extraParams, timer, true, (byte) alpha);