Thank you, HomerHorwitz, for a patch that

implements llSetLinkTexture. Heavily influenced by llSetLinkPrimitiveParams.
0.6.0-stable
Melanie Thielker 2008-07-30 22:37:42 +00:00
parent 5095b4c212
commit 3a2caa1f9a
2 changed files with 20 additions and 2 deletions

View File

@ -7230,7 +7230,16 @@ namespace OpenSim.Region.ScriptEngine.Common
public void llSetLinkTexture(int linknumber, string texture, int face)
{
m_host.AddScriptLPS(1);
NotImplemented("llSetLinkTexture");
if (m_host.ParentGroup == null)
return;
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknumber);
if (part == null)
return;
SetTexture(part, texture, face);
}
public string llStringTrim(string src, int type)

View File

@ -7008,7 +7008,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llSetLinkTexture(int linknumber, string texture, int face)
{
m_host.AddScriptLPS(1);
NotImplemented("llSetLinkTexture");
if (m_host.ParentGroup == null)
return;
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknumber);
if (part == null)
return;
SetTexture(part, texture, face);
}
public string llStringTrim(string src, int type)