diff options
author | Melanie | 2011-05-20 22:38:05 +0100 |
---|---|---|
committer | Melanie | 2011-05-20 22:38:05 +0100 |
commit | e62d1cc480ef98be5621ed809c2dd7f1e8d16dd9 (patch) | |
tree | 746085bf27044b477fc4552228b14388565421ec /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | If a response cannot be obtained (the script has no handler) return a more fr... (diff) | |
parent | Implement llGetLinKNumberOfSides(). (diff) | |
download | opensim-SC-e62d1cc480ef98be5621ed809c2dd7f1e8d16dd9.zip opensim-SC-e62d1cc480ef98be5621ed809c2dd7f1e8d16dd9.tar.gz opensim-SC-e62d1cc480ef98be5621ed809c2dd7f1e8d16dd9.tar.bz2 opensim-SC-e62d1cc480ef98be5621ed809c2dd7f1e8d16dd9.tar.xz |
Merge branch 'master' into careminster-presence-refactor
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 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); |