* Bring llSetLinkTexture into line with llSetLinkColor and lLSetLinkPrimitiveParams() implementations * Thanks ralphos0.6.0-stable
parent
48d86fb23f
commit
f085d53be2
|
@ -1521,6 +1521,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
// ScriptSleep(200);
|
// ScriptSleep(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void llSetLinkTexture(int linknumber, string texture, int face)
|
||||||
|
{
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
|
List<SceneObjectPart> parts = GetLinkParts(linknumber);
|
||||||
|
|
||||||
|
foreach (SceneObjectPart part in parts)
|
||||||
|
SetTexture(part, texture, face);
|
||||||
|
|
||||||
|
// ScriptSleep(200);
|
||||||
|
}
|
||||||
|
|
||||||
private void SetTexture(SceneObjectPart part, string texture, int face)
|
private void SetTexture(SceneObjectPart part, string texture, int face)
|
||||||
{
|
{
|
||||||
UUID textureID=new UUID();
|
UUID textureID=new UUID();
|
||||||
|
@ -8026,22 +8038,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void llSetLinkTexture(int linknumber, string texture, int face)
|
|
||||||
{
|
|
||||||
m_host.AddScriptLPS(1);
|
|
||||||
|
|
||||||
if (m_host.ParentGroup == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknumber);
|
|
||||||
|
|
||||||
if (part == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
SetTexture(part, texture, face);
|
|
||||||
// ScriptSleep(200);
|
|
||||||
}
|
|
||||||
|
|
||||||
public LSL_String llStringTrim(string src, int type)
|
public LSL_String llStringTrim(string src, int type)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
Loading…
Reference in New Issue