Convert the lsl list type into a struct. EXPERIMENTAL! This may affect

the llSetPrimitiveParams family of functions adversely. Please test!
This commit is contained in:
Melanie Thielker
2015-08-19 23:14:11 +02:00
parent 25335b0707
commit 662b59af83
4 changed files with 172 additions and 172 deletions

View File

@@ -2473,14 +2473,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// on the ILSL_Api interface.
LSL_Api LSL_Api = (LSL_Api)m_LSL_Api;
LSL_List retVal = new LSL_List();
LSL_List remaining = null;
LSL_List remaining;
List<SceneObjectPart> parts = LSL_Api.GetLinkParts(linknumber);
foreach (SceneObjectPart part in parts)
{
remaining = LSL_Api.GetPrimParams(part, rules, ref retVal);
}
while (remaining != null && remaining.Length > 2)
while (remaining.Length > 2)
{
linknumber = remaining.GetLSLIntegerItem(0);
rules = remaining.GetSublist(1, -1);