aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index cb3bddc..1cf03b8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4458,10 +4458,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4458 return result; 4458 return result;
4459 } 4459 }
4460 4460
4461 public void llGetLinkNumberOfSides(int link) 4461 public LSL_Integer llGetLinkNumberOfSides(int link)
4462 { 4462 {
4463 m_host.AddScriptLPS(1); 4463 m_host.AddScriptLPS(1);
4464 NotImplemented("llGetLinkNumberOfSides"); 4464
4465 SceneObjectPart linkedPart;
4466
4467 if (link == ScriptBaseClass.LINK_ROOT)
4468 linkedPart = m_host.ParentGroup.RootPart;
4469 else if (link == ScriptBaseClass.LINK_THIS)
4470 linkedPart = m_host;
4471 else
4472 linkedPart = m_host.ParentGroup.GetLinkNumPart(link);
4473
4474 return GetNumberOfSides(linkedPart);
4465 } 4475 }
4466 4476
4467 public LSL_Integer llGetNumberOfSides() 4477 public LSL_Integer llGetNumberOfSides()