aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorMelanie2011-10-27 18:14:38 +0100
committerMelanie2011-10-27 18:14:38 +0100
commitb975cbcbed71b12898052395fbc83a5880273190 (patch)
treef149288740af5227a865783a51f566bef537721e /OpenSim/Region/Framework/Scenes/SceneGraph.cs
parentMerge branch 'master' into bigmerge (diff)
parentRemoved use of 'is' operator and casting to find the root ScenePresence in Me... (diff)
downloadopensim-SC_OLD-b975cbcbed71b12898052395fbc83a5880273190.zip
opensim-SC_OLD-b975cbcbed71b12898052395fbc83a5880273190.tar.gz
opensim-SC_OLD-b975cbcbed71b12898052395fbc83a5880273190.tar.bz2
opensim-SC_OLD-b975cbcbed71b12898052395fbc83a5880273190.tar.xz
Merge branch 'master' into bigmerge
Conflicts: OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 13668ab..a4080ca 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1265,7 +1265,21 @@ namespace OpenSim.Region.Framework.Scenes
1265 } 1265 }
1266 } 1266 }
1267 } 1267 }
1268 1268
1269 /// <summary>
1270 /// Performs action on all ROOT (not child) scene presences.
1271 /// This is just a shortcut function since frequently actions only appy to root SPs
1272 /// </summary>
1273 /// <param name="action"></param>
1274 public void ForEachRootScenePresence(Action<ScenePresence> action)
1275 {
1276 ForEachScenePresence(delegate(ScenePresence sp)
1277 {
1278 if (!sp.IsChildAgent)
1279 action(sp);
1280 });
1281 }
1282
1269 /// <summary> 1283 /// <summary>
1270 /// Performs action on all scene presences. This can ultimately run the actions in parallel but 1284 /// Performs action on all scene presences. This can ultimately run the actions in parallel but
1271 /// any delegates passed in will need to implement their own locking on data they reference and 1285 /// any delegates passed in will need to implement their own locking on data they reference and