diff options
author | Charles Krinke | 2008-09-10 03:19:57 +0000 |
---|---|---|
committer | Charles Krinke | 2008-09-10 03:19:57 +0000 |
commit | 7305dadba28b0a89873bca6d54e5247233f0a06b (patch) | |
tree | 609a43ccbc044aa6739aebdc2e8cb57ab1562956 /OpenSim/Region/ScriptEngine/Common | |
parent | Implementation of llDetectedGroup for DotNetEngine. (diff) | |
download | opensim-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/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
360 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); | 360 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); |
361 | if (textureManager != null) | 361 | if (textureManager != null) |
362 | { | 362 | { |
363 | if (extraParams == String.Empty) | ||
364 | { | ||
365 | extraParams = "256"; | ||
366 | } | ||
363 | UUID createdTexture = | 367 | UUID createdTexture = |
364 | textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, | 368 | textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, |
365 | extraParams, timer); | 369 | extraParams, timer); |
@@ -383,6 +387,10 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
383 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); | 387 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); |
384 | if (textureManager != null) | 388 | if (textureManager != null) |
385 | { | 389 | { |
390 | if (extraParams == String.Empty) | ||
391 | { | ||
392 | extraParams = "256"; | ||
393 | } | ||
386 | UUID createdTexture = | 394 | UUID createdTexture = |
387 | textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, | 395 | textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, |
388 | extraParams, timer, true, (byte) alpha); | 396 | extraParams, timer, true, (byte) alpha); |