diff options
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 16 |
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 0240227..1cf03b8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4458,6 +4458,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4458 | return result; | 4458 | return result; |
4459 | } | 4459 | } |
4460 | 4460 | ||
4461 | public LSL_Integer llGetLinkNumberOfSides(int link) | ||
4462 | { | ||
4463 | m_host.AddScriptLPS(1); | ||
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); | ||
4475 | } | ||
4476 | |||
4461 | public LSL_Integer llGetNumberOfSides() | 4477 | public LSL_Integer llGetNumberOfSides() |
4462 | { | 4478 | { |
4463 | m_host.AddScriptLPS(1); | 4479 | m_host.AddScriptLPS(1); |