aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-11-16 22:26:07 +0100
committerMelanie2010-11-16 22:18:35 +0000
commit390c3a3b6fa62e05c7b90908ac7ef0e40f545048 (patch)
treecb0a895c053d8f7910bcbc189071188af7a1dd5b /OpenSim
parentChange the way attachments are persisted. Editing a worn attachment will now (diff)
downloadopensim-SC_OLD-390c3a3b6fa62e05c7b90908ac7ef0e40f545048.zip
opensim-SC_OLD-390c3a3b6fa62e05c7b90908ac7ef0e40f545048.tar.gz
opensim-SC_OLD-390c3a3b6fa62e05c7b90908ac7ef0e40f545048.tar.bz2
opensim-SC_OLD-390c3a3b6fa62e05c7b90908ac7ef0e40f545048.tar.xz
Prevent leftover attachments from clogging up the pipes
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index bfc1bd6..db69093 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3759,9 +3759,12 @@ namespace OpenSim.Region.Framework.Scenes
3759 { 3759 {
3760 if (grp.HasGroupChanged) // Resizer scripts? 3760 if (grp.HasGroupChanged) // Resizer scripts?
3761 { 3761 {
3762 grp.DetachToInventoryPrep(); 3762 grp.RootPart.IsAttachment = false;
3763 grp.AbsolutePosition = grp.RootPart.AttachedPos;
3764// grp.DetachToInventoryPrep();
3763 attachmentsModule.UpdateKnownItem(ControllingClient, 3765 attachmentsModule.UpdateKnownItem(ControllingClient,
3764 grp, grp.GetFromItemID(), grp.OwnerID); 3766 grp, grp.GetFromItemID(), grp.OwnerID);
3767 grp.RootPart.IsAttachment = true;
3765 } 3768 }
3766 } 3769 }
3767 } 3770 }