Unsit seated avatars when an object is deleted
parent
bd87eb90d1
commit
e2d4cb870e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue