diff options
author | Makopoppo | 2011-07-04 22:45:21 +0900 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-09 00:49:53 +0100 |
commit | e7abf834d1b51353ec90f424b87487bbeb391582 (patch) | |
tree | e00686890eda9681c796386aa887ddaae82c8bd8 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Rename SetSculptData() to SetSculptProperties(), since this is what it does (... (diff) | |
download | opensim-SC-e7abf834d1b51353ec90f424b87487bbeb391582.zip opensim-SC-e7abf834d1b51353ec90f424b87487bbeb391582.tar.gz opensim-SC-e7abf834d1b51353ec90f424b87487bbeb391582.tar.bz2 opensim-SC-e7abf834d1b51353ec90f424b87487bbeb391582.tar.xz |
Instance-types-in-list fix for LSL/OSSL functions. This will fix llListFindList() which always returns -1 when you compare with the list from those functions.
*llCSV2List
*llGetAnimationList
*llGetLinkPrimitiveParams
*llGetObjectDetails
*llGetParcelDetails
*llGetParcelPrimOwners
*llGetPrimitiveParams
*GetLinkPrimitiveParamsEx
*osGetAgents
*osMatchString
*osGetLinkPrimitiveParams
*osGetPrimitiveParams
*osGetAvatarList
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 1bc4534..b3f90e2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -811,7 +811,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
811 | World.ForEachScenePresence(delegate(ScenePresence sp) | 811 | World.ForEachScenePresence(delegate(ScenePresence sp) |
812 | { | 812 | { |
813 | if (!sp.IsChildAgent) | 813 | if (!sp.IsChildAgent) |
814 | result.Add(sp.Name); | 814 | result.Add(new LSL_String(sp.Name)); |
815 | }); | 815 | }); |
816 | return result; | 816 | return result; |
817 | } | 817 | } |
@@ -2030,8 +2030,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2030 | { | 2030 | { |
2031 | if (g.Success) | 2031 | if (g.Success) |
2032 | { | 2032 | { |
2033 | result.Add(g.Value); | 2033 | result.Add(new LSL_String(g.Value)); |
2034 | result.Add(g.Index); | 2034 | result.Add(new LSL_Integer(g.Index)); |
2035 | } | 2035 | } |
2036 | } | 2036 | } |
2037 | } | 2037 | } |
@@ -2365,9 +2365,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2365 | { | 2365 | { |
2366 | if (avatar.IsChildAgent == false) | 2366 | if (avatar.IsChildAgent == false) |
2367 | { | 2367 | { |
2368 | result.Add(avatar.UUID); | 2368 | result.Add(new LSL_String(avatar.UUID.ToString())); |
2369 | result.Add(avatar.AbsolutePosition); | 2369 | OpenMetaverse.Vector3 ap = avatar.AbsolutePosition; |
2370 | result.Add(avatar.Name); | 2370 | result.Add(new LSL_Vector(ap.X, ap.Y, ap.Z)); |
2371 | result.Add(new LSL_String(avatar.Name)); | ||
2371 | } | 2372 | } |
2372 | } | 2373 | } |
2373 | }); | 2374 | }); |