Fix casts and calls for link primitive param setting for avatars

avinationmerge
Melanie 2012-08-16 01:01:03 +02:00
parent 5ac77316e0
commit 4e5c19595c
1 changed files with 14 additions and 4 deletions

View File

@ -7782,8 +7782,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (parts.Count > 0) if (parts.Count > 0)
{ {
foreach (SceneObjectPart part in parts) foreach (object part in parts)
remaining = SetPrimParams(part, rules); {
if (part is SceneObjectPart)
remaining = SetPrimParams((SceneObjectPart)part, rules);
else
remaining = SetPrimParams((ScenePresence)part, rules);
}
while((object)remaining != null && remaining.Length > 2) while((object)remaining != null && remaining.Length > 2)
{ {
@ -7797,8 +7802,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
foreach (ScenePresence p in avatars) foreach (ScenePresence p in avatars)
parts.Add(p); parts.Add(p);
foreach (SceneObjectPart part in parts) foreach (object part in parts)
remaining = SetPrimParams(part, rules); {
if (part is SceneObjectPart)
remaining = SetPrimParams((SceneObjectPart)part, rules);
else
remaining = SetPrimParams((ScenePresence)part, rules);
}
} }
} }
} }