diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index efd1f39..43cfea2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2257,11 +2257,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2257 | CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams"); | 2257 | CheckThreatLevel(ThreatLevel.High, "osGetLinkPrimitiveParams"); |
2258 | m_host.AddScriptLPS(1); | 2258 | m_host.AddScriptLPS(1); |
2259 | InitLSL(); | 2259 | InitLSL(); |
2260 | // One needs to cast m_LSL_Api because we're using functions not | ||
2261 | // on the ILSL_Api interface. | ||
2262 | LSL_Api LSL_Api = (LSL_Api)m_LSL_Api; | ||
2260 | LSL_List retVal = new LSL_List(); | 2263 | LSL_List retVal = new LSL_List(); |
2261 | List<SceneObjectPart> parts = ((LSL_Api)m_LSL_Api).GetLinkParts(linknumber); | 2264 | List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber); |
2262 | foreach (SceneObjectPart part in parts) | 2265 | foreach (SceneObjectPart part in parts) |
2263 | { | 2266 | { |
2264 | ((LSL_Api)m_LSL_Api).GetPrimParams(part, rules, ref retVal); | 2267 | LSL_Api.GetPrimParams(part, rules, ref retVal); |
2265 | } | 2268 | } |
2266 | return retVal; | 2269 | return retVal; |
2267 | } | 2270 | } |