diff options
author | Melanie | 2013-06-02 23:53:07 +0200 |
---|---|---|
committer | Melanie | 2013-06-02 23:53:07 +0200 |
commit | e2d4cb870ed4bccb4ee127b079742a67ec1ad752 (patch) | |
tree | 162bd73eee9cc5e23746408af4dd643c619b6a6b /OpenSim | |
parent | Implement PERMISSION_TELEPORT and the needed checks to make it work. (diff) | |
download | opensim-SC_OLD-e2d4cb870ed4bccb4ee127b079742a67ec1ad752.zip opensim-SC_OLD-e2d4cb870ed4bccb4ee127b079742a67ec1ad752.tar.gz opensim-SC_OLD-e2d4cb870ed4bccb4ee127b079742a67ec1ad752.tar.bz2 opensim-SC_OLD-e2d4cb870ed4bccb4ee127b079742a67ec1ad752.tar.xz |
Unsit seated avatars when an object is deleted
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 584ffea..2b58795 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2440,6 +2440,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2440 | else | 2440 | else |
2441 | group.StopScriptInstances(); | 2441 | group.StopScriptInstances(); |
2442 | 2442 | ||
2443 | List<UUID> avatars = group.GetSittingAvatars(); | ||
2444 | foreach (UUID av in avatars) | ||
2445 | { | ||
2446 | ScenePresence p = GetScenePresence(av); | ||
2447 | if (p != null) | ||
2448 | p.StandUp(); | ||
2449 | } | ||
2450 | |||
2443 | SceneObjectPart[] partList = group.Parts; | 2451 | SceneObjectPart[] partList = group.Parts; |
2444 | 2452 | ||
2445 | foreach (SceneObjectPart part in partList) | 2453 | foreach (SceneObjectPart part in partList) |