diff options
author | Melanie Thielker | 2010-08-04 18:12:31 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-08-04 18:12:31 +0200 |
commit | 4a3321077163f4e93ac67609428c0e6fa4d31b9e (patch) | |
tree | 707d183fe575373eb459e1adfc5820246b1f62f0 /OpenSim | |
parent | Cost Reduction : Removing verbose message.... (diff) | |
download | opensim-SC-4a3321077163f4e93ac67609428c0e6fa4d31b9e.zip opensim-SC-4a3321077163f4e93ac67609428c0e6fa4d31b9e.tar.gz opensim-SC-4a3321077163f4e93ac67609428c0e6fa4d31b9e.tar.bz2 opensim-SC-4a3321077163f4e93ac67609428c0e6fa4d31b9e.tar.xz |
Send attachment updates only to the owner if it's a HUD
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index a9f9d60..4ab719d 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -3485,6 +3485,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3485 | /// </summary> | 3485 | /// </summary> |
3486 | public void SendPrimUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags) | 3486 | public void SendPrimUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags) |
3487 | { | 3487 | { |
3488 | if (entity is SceneObjectPart) | ||
3489 | { | ||
3490 | SceneObjectPart e = (SceneObjectPart)entity; | ||
3491 | SceneObjectGroup g = e.ParentGroup; | ||
3492 | if (g.RootPart.Shape.State > 30) // HUD | ||
3493 | if (g.OwnerID != AgentId) | ||
3494 | return; // Don't send updates for other people's HUDs | ||
3495 | } | ||
3496 | |||
3488 | double priority = m_prioritizer.GetUpdatePriority(this, entity); | 3497 | double priority = m_prioritizer.GetUpdatePriority(this, entity); |
3489 | 3498 | ||
3490 | lock (m_entityUpdates.SyncRoot) | 3499 | lock (m_entityUpdates.SyncRoot) |