let setLinkPrimParams terminate even if there are no more parts.

avinationmerge
UbitUmarov 2012-08-16 22:14:56 +01:00
parent db3f0a3748
commit f9a318380b
1 changed files with 3 additions and 2 deletions

View File

@ -7778,10 +7778,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
remaining = SetPrimParams((ScenePresence)part, rules);
}
while((object)remaining != null && remaining.Length > 2)
while ((object)remaining != null && remaining.Length > 2)
{
linknumber = remaining.GetLSLIntegerItem(0);
rules = remaining.GetSublist(1,-1);
rules = remaining.GetSublist(1, -1);
parts.Clear();
prims = GetLinkParts(linknumber);
avatars = GetLinkAvatars(linknumber);
@ -7790,6 +7790,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
foreach (ScenePresence p in avatars)
parts.Add(p);
remaining = null;
foreach (object part in parts)
{
if (part is SceneObjectPart)