* Bring llSetLinkTexture into line with llSetLinkColor and lLSetLinkPrimitiveParams() implementations
* Thanks ralphos
0.6.0-stable
Justin Clarke Casey 2008-10-07 14:58:56 +00:00
parent 48d86fb23f
commit f085d53be2
1 changed files with 12 additions and 16 deletions

View File

@ -1521,6 +1521,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// 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)
{
UUID textureID=new UUID();
@ -8026,22 +8038,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
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)
{
m_host.AddScriptLPS(1);