diff options
author | UbitUmarov | 2014-08-25 21:49:39 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-25 21:49:39 +0100 |
commit | c24601bc6a9be5ab84a8c7b4600382ef9f0c895e (patch) | |
tree | a3c03c386af8bbf28546a20c92b3f130aaa8eaae /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | back to just kills (diff) | |
download | opensim-SC-c24601bc6a9be5ab84a8c7b4600382ef9f0c895e.zip opensim-SC-c24601bc6a9be5ab84a8c7b4600382ef9f0c895e.tar.gz opensim-SC-c24601bc6a9be5ab84a8c7b4600382ef9f0c895e.tar.bz2 opensim-SC-c24601bc6a9be5ab84a8c7b4600382ef9f0c895e.tar.xz |
change enconding of attachment updates NameValue and State fields
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index e19877c..b45d561 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -5393,6 +5393,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5393 | //update.JointType = 0; | 5393 | //update.JointType = 0; |
5394 | update.Material = data.Material; | 5394 | update.Material = data.Material; |
5395 | update.MediaURL = Utils.EmptyBytes; // FIXME: Support this in OpenSim | 5395 | update.MediaURL = Utils.EmptyBytes; // FIXME: Support this in OpenSim |
5396 | /* | ||
5396 | if (data.ParentGroup.IsAttachment) | 5397 | if (data.ParentGroup.IsAttachment) |
5397 | { | 5398 | { |
5398 | update.NameValue = Util.StringToBytes256("AttachItemID STRING RW SV " + data.ParentGroup.FromItemID); | 5399 | update.NameValue = Util.StringToBytes256("AttachItemID STRING RW SV " + data.ParentGroup.FromItemID); |
@@ -5406,6 +5407,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5406 | // case for attachments may contain conflicting values that can end up crashing the viewer. | 5407 | // case for attachments may contain conflicting values that can end up crashing the viewer. |
5407 | update.State = data.ParentGroup.RootPart.Shape.State; | 5408 | update.State = data.ParentGroup.RootPart.Shape.State; |
5408 | } | 5409 | } |
5410 | */ | ||
5411 | |||
5412 | if (data.ParentGroup.IsAttachment) | ||
5413 | { | ||
5414 | if (data.UUID != data.ParentGroup.RootPart.UUID) | ||
5415 | { | ||
5416 | update.NameValue = Util.StringToBytes256("AttachItemID STRING RW SV " + data.ParentGroup.FromItemID); | ||
5417 | } | ||
5418 | else | ||
5419 | update.NameValue = Utils.EmptyBytes; | ||
5420 | |||
5421 | int st = (int)data.ParentGroup.RootPart.Shape.State; | ||
5422 | st = (st & 0xf0) >> 4 + (st & 0x0f) << 4; | ||
5423 | update.State = (byte)st; | ||
5424 | } | ||
5425 | // else | ||
5426 | // update.State = data.Shape.State; // not sure about this | ||
5427 | |||
5409 | 5428 | ||
5410 | // m_log.DebugFormat( | 5429 | // m_log.DebugFormat( |
5411 | // "[LLCLIENTVIEW]: Sending state {0} for {1} {2} to {3}", | 5430 | // "[LLCLIENTVIEW]: Sending state {0} for {1} {2} to {3}", |