diff options
author | Melanie | 2011-10-27 17:45:51 +0200 |
---|---|---|
committer | Melanie | 2011-10-27 17:45:51 +0200 |
commit | 955144584da5dd8c90af74cd897f1088cb8f1aad (patch) | |
tree | 96a4245dd490748001bde537fd29e0b4a514968a /OpenSim/Region/Framework/Scenes/SceneGraph.cs | |
parent | Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge (diff) | |
parent | Merge branch 'master' into bigmerge (diff) | |
download | opensim-SC-955144584da5dd8c90af74cd897f1088cb8f1aad.zip opensim-SC-955144584da5dd8c90af74cd897f1088cb8f1aad.tar.gz opensim-SC-955144584da5dd8c90af74cd897f1088cb8f1aad.tar.bz2 opensim-SC-955144584da5dd8c90af74cd897f1088cb8f1aad.tar.xz |
Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 16 |
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 |