aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 48a7953..c240edf 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4887,6 +4887,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4887 return result; 4887 return result;
4888 } 4888 }
4889 4889
4890 public LSL_Integer llGetLinkNumberOfSides(int link)
4891 {
4892 m_host.AddScriptLPS(1);
4893
4894 SceneObjectPart linkedPart;
4895
4896 if (link == ScriptBaseClass.LINK_ROOT)
4897 linkedPart = m_host.ParentGroup.RootPart;
4898 else if (link == ScriptBaseClass.LINK_THIS)
4899 linkedPart = m_host;
4900 else
4901 linkedPart = m_host.ParentGroup.GetLinkNumPart(link);
4902
4903 return GetNumberOfSides(linkedPart);
4904 }
4905
4890 public LSL_Integer llGetNumberOfSides() 4906 public LSL_Integer llGetNumberOfSides()
4891 { 4907 {
4892 m_host.AddScriptLPS(1); 4908 m_host.AddScriptLPS(1);