From 68c0393c518c9a82597e8cf753ea9cc6cc7ca91a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 4 Oct 2008 16:58:34 +0000 Subject: Cause a request to a different attachment point to taint the attachment so that the attachment point is saved even if nothing else changed --- OpenSim/Region/Environment/Scenes/InnerScene.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs') diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index ba14784..bded963 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs @@ -461,8 +461,14 @@ namespace OpenSim.Region.Environment.Scenes if (objatt != null) { + bool tainted = false; + if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint()) + tainted = true; + AttachObject(remoteClient, objatt.LocalId, AttachmentPt, Quaternion.Identity, objatt.AbsolutePosition); objatt.ScheduleGroupForFullUpdate(); + if (tainted) + objatt.HasGroupChanged = true; } return objatt; } -- cgit v1.1