aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie2010-03-30 23:29:03 +0100
committerMelanie2010-03-30 23:29:03 +0100
commit7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4 (patch)
tree4fbeba0476276a867859d257d369689385d2b54c /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.zip
opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.gz
opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.bz2
opensim-SC_OLD-7d917e7c5c599549d2a87451fe3d6ca2bf6e62a4.tar.xz
Rename Meta7Windlight to LightShare
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 3895d93..7ed29a5 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1370,21 +1370,20 @@ namespace OpenSim.Region.Framework.Scenes
1370 { 1370 {
1371// part.Inventory.RemoveScriptInstances(); 1371// part.Inventory.RemoveScriptInstances();
1372 1372
1373 List<ScenePresence> avatars = Scene.GetScenePresences(); 1373 Scene.ForEachScenePresence(delegate (ScenePresence sp)
1374 for (int i = 0; i < avatars.Count; i++)
1375 { 1374 {
1376 if (avatars[i].ParentID == LocalId) 1375 if (sp.ParentID == LocalId)
1377 { 1376 {
1378 avatars[i].StandUp(); 1377 sp.StandUp();
1379 } 1378 }
1380 1379
1381 if (!silent) 1380 if (!silent)
1382 { 1381 {
1383 part.UpdateFlag = 0; 1382 part.UpdateFlag = 0;
1384 if (part == m_rootPart) 1383 if (part == m_rootPart)
1385 avatars[i].ControllingClient.SendKillObject(m_regionHandle, part.LocalId); 1384 sp.ControllingClient.SendKillObject(m_regionHandle, part.LocalId);
1386 } 1385 }
1387 } 1386 });
1388 1387
1389 } 1388 }
1390 1389