diff options
author | UbitUmarov | 2014-08-21 00:49:10 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-21 00:49:10 +0100 |
commit | 5bf145a3977a55c474106bbe2a6c107dd9457f0d (patch) | |
tree | b43c772cdb4c15de78e8262b366a26af3d2fefae /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | revert droping udp packet resends after 6 retries, keep resending. (diff) | |
download | opensim-SC-5bf145a3977a55c474106bbe2a6c107dd9457f0d.zip opensim-SC-5bf145a3977a55c474106bbe2a6c107dd9457f0d.tar.gz opensim-SC-5bf145a3977a55c474106bbe2a6c107dd9457f0d.tar.bz2 opensim-SC-5bf145a3977a55c474106bbe2a6c107dd9457f0d.tar.xz |
add a direct sendpartfullUpdate to send a full object update to a part,
optionally overriding its parentID. check what it does to attachments
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 475cfe2..06f1301 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -4208,9 +4208,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4208 | OutPacket(packet, ThrottleOutPacketType.Task, true); | 4208 | OutPacket(packet, ThrottleOutPacketType.Task, true); |
4209 | } | 4209 | } |
4210 | 4210 | ||
4211 | |||
4212 | |||
4211 | #endregion Packet Sending | 4213 | #endregion Packet Sending |
4214 | |||
4212 | } | 4215 | } |
4213 | 4216 | ||
4217 | // hack.. dont use | ||
4218 | public void SendPartFullUpdate(ISceneEntity ent, uint? parentID) | ||
4219 | { | ||
4220 | if (ent is SceneObjectPart) | ||
4221 | { | ||
4222 | SceneObjectPart part = (SceneObjectPart)ent; | ||
4223 | ObjectUpdatePacket packet = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate); | ||
4224 | packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle; | ||
4225 | packet.RegionData.TimeDilation = 1; | ||
4226 | packet.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; | ||
4227 | |||
4228 | ObjectUpdatePacket.ObjectDataBlock blk = CreatePrimUpdateBlock(part, this.m_agentId); | ||
4229 | if (parentID.HasValue) | ||
4230 | { | ||
4231 | blk.ParentID = parentID.Value; | ||
4232 | } | ||
4233 | |||
4234 | packet.ObjectData[0] = blk; | ||
4235 | |||
4236 | OutPacket(packet, ThrottleOutPacketType.Task, true); | ||
4237 | } | ||
4238 | } | ||
4239 | |||
4214 | public void ReprioritizeUpdates() | 4240 | public void ReprioritizeUpdates() |
4215 | { | 4241 | { |
4216 | lock (m_entityUpdates.SyncRoot) | 4242 | lock (m_entityUpdates.SyncRoot) |