diff options
author | Melanie | 2009-08-07 21:51:03 +0100 |
---|---|---|
committer | Melanie | 2009-08-07 21:51:03 +0100 |
commit | 6c6527caae77715f32c3cffe0adb7bc774fb8e97 (patch) | |
tree | 5198c097e16524aa4483917aea6c0aac5651ea4b /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Experimental! Implement ISponsor in ScriptInstance (diff) | |
download | opensim-SC-6c6527caae77715f32c3cffe0adb7bc774fb8e97.zip opensim-SC-6c6527caae77715f32c3cffe0adb7bc774fb8e97.tar.gz opensim-SC-6c6527caae77715f32c3cffe0adb7bc774fb8e97.tar.bz2 opensim-SC-6c6527caae77715f32c3cffe0adb7bc774fb8e97.tar.xz |
Thank you, Godfrey, for a patch that implements osGetLinkPrimitiveParams
Fixes Mantis #3979
Applied with changes. Changed ThreatLevel to High since all discovery
functions are a high threat. Overriding that is the responsibility
of the grid owner.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index bf86eeb..fd4ba71 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1740,6 +1740,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1740 | 1740 | ||
1741 | return World.RegionInfo.RegionSettings.LoadedCreationID; | 1741 | return World.RegionInfo.RegionSettings.LoadedCreationID; |
1742 | } | 1742 | } |
1743 | |||
1744 | // Threat level is 'Low' because certain users could possibly be tricked into | ||
1745 | // dropping an unverified script into one of their own objects, which could | ||
1746 | // then gather the physical construction details of the object and transmit it | ||
1747 | // to an unscrupulous third party, thus permitting unauthorized duplication of | ||
1748 | // the object's form. | ||
1749 | // | ||
1750 | public LSL_List osGetLinkPrimitiveParams( int linknumber, LSL_List rules ) | ||
1751 | { | ||
1752 | CheckThreatLevel( ThreatLevel.High, "osGetLinkPrimitiveParams" ); | ||
1753 | m_host.AddScriptLPS( 1 ); | ||
1754 | InitLSL(); | ||
1755 | LSL_List retVal = new LSL_List(); | ||
1756 | List<SceneObjectPart> parts = ((LSL_Api)m_LSL_Api).GetLinkParts( linknumber ); | ||
1757 | foreach (SceneObjectPart part in parts) | ||
1758 | { | ||
1759 | retVal += ((LSL_Api)m_LSL_Api).GetLinkPrimitiveParams( part, rules ); | ||
1760 | } | ||
1761 | return retVal; | ||
1762 | } | ||
1743 | 1763 | ||
1744 | } | 1764 | } |
1745 | } | 1765 | } |