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/Avatar/Attachments | |
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 'OpenSim/Region/CoreModules/Avatar/Attachments')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 9e5ce8f..587f35e 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -147,6 +147,16 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
147 | } | 147 | } |
148 | } | 148 | } |
149 | } | 149 | } |
150 | |||
151 | public void DeleteAttachmentsFromScene(IScenePresence sp, bool silent) | ||
152 | { | ||
153 | foreach (SceneObjectGroup sop in sp.GetAttachments()) | ||
154 | { | ||
155 | sop.Scene.DeleteSceneObject(sop, silent); | ||
156 | } | ||
157 | |||
158 | sp.ClearAttachments(); | ||
159 | } | ||
150 | 160 | ||
151 | /// <summary> | 161 | /// <summary> |
152 | /// Called by client | 162 | /// Called by client |