From 75cbe620c025dba998d8291277e499ecb27a250c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 25 Aug 2014 22:45:31 +0100 Subject: *test* cleanup the bugs nest --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index b45d561..0663983 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -5411,19 +5411,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (data.ParentGroup.IsAttachment) { - if (data.UUID != data.ParentGroup.RootPart.UUID) + if (data.UUID == data.ParentGroup.RootPart.UUID) { update.NameValue = Util.StringToBytes256("AttachItemID STRING RW SV " + data.ParentGroup.FromItemID); } else update.NameValue = Utils.EmptyBytes; - int st = (int)data.ParentGroup.RootPart.Shape.State; - st = (st & 0xf0) >> 4 + (st & 0x0f) << 4; - update.State = (byte)st; + int st = (int)data.ParentGroup.AttachmentPoint; + update.State = (byte)(((st & 0xf0) >> 4) + ((st & 0x0f) << 4)); ; + } + else + { + update.NameValue = Utils.EmptyBytes; + update.State = data.Shape.State; // not sure about this } -// else -// update.State = data.Shape.State; // not sure about this // m_log.DebugFormat( -- cgit v1.1