From 3a2caa1f9a30c5d8d6b5e290f124f470ff0dd0fb Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 30 Jul 2008 22:37:42 +0000 Subject: Thank you, HomerHorwitz, for a patch that implements llSetLinkTexture. Heavily influenced by llSetLinkPrimitiveParams. --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c5f1763..7080ad1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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) -- cgit v1.1