From 6f5b7957a909ff43799c051f5c7c0deaece3a0a7 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 12 Jan 2020 10:45:10 +0000 Subject: [PATCH] fix attachment point changes detection --- .../Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index e82dc7f2f0..e53ca479a2 100755 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs @@ -1268,6 +1268,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments Vector3 lastPos = objatt.RootPart.OffsetPosition; Vector3 lastAttPos = objatt.RootPart.AttachedPos; + uint lastattPoint = objatt.AttachmentPoint; bool doneAttach = false; // FIXME: Detect whether it's really likely for AttachObject to throw an exception in the normal // course of events. If not, then it's probably not worth trying to recover the situation @@ -1301,7 +1302,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments return null; } - if ((attachmentPt != 0 && attachmentPt != objatt.AttachmentPoint) || + if (lastattPoint != objatt.AttachmentPoint || lastPos != objatt.RootPart.OffsetPosition || lastAttPos != objatt.RootPart.AttachedPos) objatt.HasGroupChanged = true;