aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-05-20 20:19:32 +0100
committerJustin Clark-Casey (justincc)2011-05-20 20:19:32 +0100
commit9fc29e1595f921bda761d71da59162f31cc32799 (patch)
treeec97c1a5d04d8aa0a87c23ce7fa4b9f11b9ceda8 /OpenSim/Region/ScriptEngine/Shared
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-9fc29e1595f921bda761d71da59162f31cc32799.zip
opensim-SC_OLD-9fc29e1595f921bda761d71da59162f31cc32799.tar.gz
opensim-SC_OLD-9fc29e1595f921bda761d71da59162f31cc32799.tar.bz2
opensim-SC_OLD-9fc29e1595f921bda761d71da59162f31cc32799.tar.xz
Implement llGetLinKNumberOfSides().
Based on code in http://opensimulator.org/mantis/view.php?id=5489 Thanks onesong.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-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()