mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Mantis#2153. Thank you kindly, Godfrey for a patch that solves:
osSetDynamicTextureData() produces error on console if ExtraParams passed empty string
This commit is contained in:
@@ -360,6 +360,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
|
||||
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<IDynamicTextureManager>();
|
||||
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);
|
||||
|
||||
@@ -229,6 +229,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
|
||||
if (textureManager != null)
|
||||
{
|
||||
if (extraParams == String.Empty)
|
||||
{
|
||||
extraParams = "256";
|
||||
}
|
||||
UUID createdTexture =
|
||||
textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data,
|
||||
extraParams, timer);
|
||||
@@ -258,6 +262,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user