diff options
author | Justin Clark-Casey (justincc) | 2011-08-31 17:53:58 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-31 17:53:58 +0100 |
commit | 7d58b5fa157b4c3e842573d9fb02a9822034f4b0 (patch) | |
tree | b726d3c045a2ccbad3530b27c00e8a03027f5548 /OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |
parent | If a FireAndForget thread terminates with an exception, then catch and log ra... (diff) | |
download | opensim-SC_OLD-7d58b5fa157b4c3e842573d9fb02a9822034f4b0.zip opensim-SC_OLD-7d58b5fa157b4c3e842573d9fb02a9822034f4b0.tar.gz opensim-SC_OLD-7d58b5fa157b4c3e842573d9fb02a9822034f4b0.tar.bz2 opensim-SC_OLD-7d58b5fa157b4c3e842573d9fb02a9822034f4b0.tar.xz |
move common code into AttachmentsModule.DeleteAttachmentsFromScene()
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index c24cc17..82bdf20 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -559,11 +559,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
559 | 559 | ||
560 | protected virtual void AgentHasMovedAway(ScenePresence sp, bool logout) | 560 | protected virtual void AgentHasMovedAway(ScenePresence sp, bool logout) |
561 | { | 561 | { |
562 | foreach (SceneObjectGroup sop in sp.GetAttachments()) | 562 | sp.Scene.AttachmentsModule.DeleteAttachmentsFromScene(sp, true); |
563 | { | ||
564 | sop.Scene.DeleteSceneObject(sop, true); | ||
565 | } | ||
566 | sp.ClearAttachments(); | ||
567 | } | 563 | } |
568 | 564 | ||
569 | protected void KillEntity(Scene scene, uint localID) | 565 | protected void KillEntity(Scene scene, uint localID) |