Unsit seated avatars when an object is deleted

avinationmerge
Melanie 2013-06-02 23:53:07 +02:00
parent bd87eb90d1
commit e2d4cb870e
1 changed files with 8 additions and 0 deletions

View File

@ -2440,6 +2440,14 @@ namespace OpenSim.Region.Framework.Scenes
else
group.StopScriptInstances();
List<UUID> avatars = group.GetSittingAvatars();
foreach (UUID av in avatars)
{
ScenePresence p = GetScenePresence(av);
if (p != null)
p.StandUp();
}
SceneObjectPart[] partList = group.Parts;
foreach (SceneObjectPart part in partList)