diff options
author | Justin Clark-Casey (justincc) | 2011-08-30 23:32:30 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-30 23:32:30 +0100 |
commit | ddc733cd3d940a4357eb0d235562050eb6f206bf (patch) | |
tree | f77e542f00edcdbb0f645665a869765a10532f1c /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | also get "nant clean" to remove old .mdb from .exe and .dll (diff) | |
download | opensim-SC-ddc733cd3d940a4357eb0d235562050eb6f206bf.zip opensim-SC-ddc733cd3d940a4357eb0d235562050eb6f206bf.tar.gz opensim-SC-ddc733cd3d940a4357eb0d235562050eb6f206bf.tar.bz2 opensim-SC-ddc733cd3d940a4357eb0d235562050eb6f206bf.tar.xz |
refactor: move SP.SaveChangedAttachments() fully into AttachmentsModule
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 040e801..91e11eb 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3831,28 +3831,5 @@ namespace OpenSim.Region.Framework.Scenes | |||
3831 | m_reprioritization_called = false; | 3831 | m_reprioritization_called = false; |
3832 | } | 3832 | } |
3833 | } | 3833 | } |
3834 | |||
3835 | public void SaveChangedAttachments() | ||
3836 | { | ||
3837 | // Need to copy this list because DetachToInventoryPrep mods it | ||
3838 | List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(Attachments.ToArray()); | ||
3839 | |||
3840 | IAttachmentsModule attachmentsModule = m_scene.AttachmentsModule; | ||
3841 | if (attachmentsModule != null) | ||
3842 | { | ||
3843 | foreach (SceneObjectGroup grp in attachments) | ||
3844 | { | ||
3845 | if (grp.HasGroupChanged) // Resizer scripts? | ||
3846 | { | ||
3847 | grp.IsAttachment = false; | ||
3848 | grp.AbsolutePosition = grp.RootPart.AttachedPos; | ||
3849 | // grp.DetachToInventoryPrep(); | ||
3850 | attachmentsModule.UpdateKnownItem(ControllingClient, | ||
3851 | grp, grp.GetFromItemID(), grp.OwnerID); | ||
3852 | grp.IsAttachment = true; | ||
3853 | } | ||
3854 | } | ||
3855 | } | ||
3856 | } | ||
3857 | } | 3834 | } |
3858 | } | 3835 | } \ No newline at end of file |