aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs25
1 files changed, 20 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 6648a60..083dcc0 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -452,6 +452,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
452 public LLClientView(EndPoint remoteEP, Scene scene, LLUDPServer udpServer, LLUDPClient udpClient, AuthenticateResponse sessionInfo, 452 public LLClientView(EndPoint remoteEP, Scene scene, LLUDPServer udpServer, LLUDPClient udpClient, AuthenticateResponse sessionInfo,
453 UUID agentId, UUID sessionId, uint circuitCode) 453 UUID agentId, UUID sessionId, uint circuitCode)
454 { 454 {
455// DebugPacketLevel = 1;
456
455 RegisterInterface<IClientIM>(this); 457 RegisterInterface<IClientIM>(this);
456 RegisterInterface<IClientChat>(this); 458 RegisterInterface<IClientChat>(this);
457 RegisterInterface<IClientIPEndpoint>(this); 459 RegisterInterface<IClientIPEndpoint>(this);
@@ -4951,8 +4953,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4951 update.Scale = new Vector3(0.45f, 0.6f, 1.9f); 4953 update.Scale = new Vector3(0.45f, 0.6f, 1.9f);
4952 update.Text = Utils.EmptyBytes; 4954 update.Text = Utils.EmptyBytes;
4953 update.TextColor = new byte[4]; 4955 update.TextColor = new byte[4];
4956
4957 // Don't send texture anim for avatars - this has no meaning for them.
4954 update.TextureAnim = Utils.EmptyBytes; 4958 update.TextureAnim = Utils.EmptyBytes;
4955 update.TextureEntry = (data.Appearance.Texture != null) ? data.Appearance.Texture.GetBytes() : Utils.EmptyBytes; 4959
4960 // Don't send texture entry for avatars here - this is accomplished via the AvatarAppearance packet
4961 update.TextureEntry = Utils.EmptyBytes;
4962// update.TextureEntry = (data.Appearance.Texture != null) ? data.Appearance.Texture.GetBytes() : Utils.EmptyBytes;
4963
4956 update.UpdateFlags = (uint)( 4964 update.UpdateFlags = (uint)(
4957 PrimFlags.Physics | PrimFlags.ObjectModify | PrimFlags.ObjectCopy | PrimFlags.ObjectAnyOwner | 4965 PrimFlags.Physics | PrimFlags.ObjectModify | PrimFlags.ObjectCopy | PrimFlags.ObjectAnyOwner |
4958 PrimFlags.ObjectYouOwner | PrimFlags.ObjectMove | PrimFlags.InventoryEmpty | PrimFlags.ObjectTransfer | 4966 PrimFlags.ObjectYouOwner | PrimFlags.ObjectMove | PrimFlags.InventoryEmpty | PrimFlags.ObjectTransfer |
@@ -6062,7 +6070,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6062 // for the client session anyway, in order to protect ourselves against bad code in plugins 6070 // for the client session anyway, in order to protect ourselves against bad code in plugins
6063 try 6071 try
6064 { 6072 {
6065
6066 byte[] visualparams = new byte[appear.VisualParam.Length]; 6073 byte[] visualparams = new byte[appear.VisualParam.Length];
6067 for (int i = 0; i < appear.VisualParam.Length; i++) 6074 for (int i = 0; i < appear.VisualParam.Length; i++)
6068 visualparams[i] = appear.VisualParam[i].ParamValue; 6075 visualparams[i] = appear.VisualParam[i].ParamValue;
@@ -11344,9 +11351,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11344 /// <summary> 11351 /// <summary>
11345 /// Send a response back to a client when it asks the asset server (via the region server) if it has 11352 /// Send a response back to a client when it asks the asset server (via the region server) if it has
11346 /// its appearance texture cached. 11353 /// its appearance texture cached.
11347 ///
11348 /// At the moment, we always reply that there is no cached texture.
11349 /// </summary> 11354 /// </summary>
11355 /// <remarks>
11356 /// At the moment, we always reply that there is no cached texture.
11357 /// </remarks>
11350 /// <param name="simclient"></param> 11358 /// <param name="simclient"></param>
11351 /// <param name="packet"></param> 11359 /// <param name="packet"></param>
11352 /// <returns></returns> 11360 /// <returns></returns>
@@ -11356,7 +11364,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11356 AgentCachedTexturePacket cachedtex = (AgentCachedTexturePacket)packet; 11364 AgentCachedTexturePacket cachedtex = (AgentCachedTexturePacket)packet;
11357 AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse); 11365 AgentCachedTextureResponsePacket cachedresp = (AgentCachedTextureResponsePacket)PacketPool.Instance.GetPacket(PacketType.AgentCachedTextureResponse);
11358 11366
11359 if (cachedtex.AgentData.SessionID != SessionId) return false; 11367 if (cachedtex.AgentData.SessionID != SessionId)
11368 return false;
11360 11369
11361 // TODO: don't create new blocks if recycling an old packet 11370 // TODO: don't create new blocks if recycling an old packet
11362 cachedresp.AgentData.AgentID = AgentId; 11371 cachedresp.AgentData.AgentID = AgentId;
@@ -11754,6 +11763,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11754 if (DebugPacketLevel <= 50 && packet.Type == PacketType.ImprovedTerseObjectUpdate) 11763 if (DebugPacketLevel <= 50 && packet.Type == PacketType.ImprovedTerseObjectUpdate)
11755 logPacket = false; 11764 logPacket = false;
11756 11765
11766 if (DebugPacketLevel <= 25 && packet.Type == PacketType.ObjectPropertiesFamily)
11767 logPacket = false;
11768
11757 if (logPacket) 11769 if (logPacket)
11758 m_log.DebugFormat( 11770 m_log.DebugFormat(
11759 "[CLIENT]: PACKET OUT to {0} ({1}) in {2} - {3}", 11771 "[CLIENT]: PACKET OUT to {0} ({1}) in {2} - {3}",
@@ -11811,6 +11823,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11811 if (DebugPacketLevel <= 100 && (packet.Type == PacketType.ViewerEffect || packet.Type == PacketType.AgentAnimation)) 11823 if (DebugPacketLevel <= 100 && (packet.Type == PacketType.ViewerEffect || packet.Type == PacketType.AgentAnimation))
11812 logPacket = false; 11824 logPacket = false;
11813 11825
11826 if (DebugPacketLevel <= 25 && packet.Type == PacketType.RequestObjectPropertiesFamily)
11827 logPacket = false;
11828
11814 if (logPacket) 11829 if (logPacket)
11815 m_log.DebugFormat( 11830 m_log.DebugFormat(
11816 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", 11831 "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}",