diff options
author | Tom | 2011-09-07 09:42:18 -0700 |
---|---|---|
committer | Tom | 2011-09-07 09:42:18 -0700 |
commit | 03f6734f4367b08e2b181ed68bc80b885e76148f (patch) | |
tree | fa8550771d3b5eb1a0315f107801b332f78bede5 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Now merging the core changes. (diff) | |
download | opensim-SC_OLD-03f6734f4367b08e2b181ed68bc80b885e76148f.zip opensim-SC_OLD-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.gz opensim-SC_OLD-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.bz2 opensim-SC_OLD-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.xz |
First set of merge fixes
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 26fe61d..345c2df 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5347,41 +5347,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
5347 | // } | 5347 | // } |
5348 | // } | 5348 | // } |
5349 | 5349 | ||
5350 | lock (m_cleaningAttachments) | ||
5351 | { | ||
5352 | ForEachSOG(delegate (SceneObjectGroup grp) | ||
5353 | { | ||
5354 | if (grp.RootPart.Shape.PCode == 0 && grp.RootPart.Shape.State != 0 && (!objectsToDelete.Contains(grp))) | ||
5355 | { | ||
5356 | UUID agentID = grp.OwnerID; | ||
5357 | if (agentID == UUID.Zero) | ||
5358 | { | ||
5359 | objectsToDelete.Add(grp); | ||
5360 | return; | ||
5361 | } | ||
5362 | |||
5363 | ScenePresence sp = GetScenePresence(agentID); | ||
5364 | if (sp == null) | ||
5365 | { | ||
5366 | objectsToDelete.Add(grp); | ||
5367 | return; | ||
5368 | } | ||
5369 | } | ||
5370 | }); | ||
5371 | } | ||
5372 | |||
5373 | if (objectsToDelete.Count > 0) | ||
5374 | { | ||
5375 | m_log.DebugFormat("[SCENE]: Starting delete of {0} dropped attachments", objectsToDelete.Count); | ||
5376 | foreach (SceneObjectGroup grp in objectsToDelete) | ||
5377 | { | ||
5378 | m_log.InfoFormat("[SCENE]: Deleting dropped attachment {0} of user {1}", grp.UUID, grp.OwnerID); | ||
5379 | DeleteSceneObject(grp, true); | ||
5380 | } | ||
5381 | m_log.Debug("[SCENE]: Finished dropped attachment deletion"); | ||
5382 | } | ||
5383 | } | ||
5384 | |||
5385 | public void ThreadAlive(int threadCode) | 5350 | public void ThreadAlive(int threadCode) |
5386 | { | 5351 | { |
5387 | switch(threadCode) | 5352 | switch(threadCode) |