*test* cleanup the bugs nest

avinationmerge
UbitUmarov 2014-08-25 22:45:31 +01:00
parent c24601bc6a
commit 75cbe620c0
1 changed files with 8 additions and 6 deletions

View File

@ -5411,19 +5411,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (data.ParentGroup.IsAttachment) 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); update.NameValue = Util.StringToBytes256("AttachItemID STRING RW SV " + data.ParentGroup.FromItemID);
} }
else else
update.NameValue = Utils.EmptyBytes; update.NameValue = Utils.EmptyBytes;
int st = (int)data.ParentGroup.RootPart.Shape.State; int st = (int)data.ParentGroup.AttachmentPoint;
st = (st & 0xf0) >> 4 + (st & 0x0f) << 4; update.State = (byte)(((st & 0xf0) >> 4) + ((st & 0x0f) << 4)); ;
update.State = (byte)st; }
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( // m_log.DebugFormat(