diff options
author | UbitUmarov | 2014-08-03 22:57:08 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-03 22:57:08 +0100 |
commit | bad01fbb418e8df5caa2735bf62ec41f8b378f10 (patch) | |
tree | f4cfbfd95257ed69871f7ed1c473ace83a75ad19 /OpenSim/Region/Framework/Scenes | |
parent | mess update ( hide avatars ) (diff) | |
download | opensim-SC-bad01fbb418e8df5caa2735bf62ec41f8b378f10.zip opensim-SC-bad01fbb418e8df5caa2735bf62ec41f8b378f10.tar.gz opensim-SC-bad01fbb418e8df5caa2735bf62ec41f8b378f10.tar.bz2 opensim-SC-bad01fbb418e8df5caa2735bf62ec41f8b378f10.tar.xz |
some mess cleanup
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 75 |
1 files changed, 35 insertions, 40 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 03eac77..8d254f2 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1836,12 +1836,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1836 | m_currentParcelUUID = UUID.Zero; | 1836 | m_currentParcelUUID = UUID.Zero; |
1837 | 1837 | ||
1838 | // send initial land overlay and parcel | 1838 | // send initial land overlay and parcel |
1839 | if (!IsChildAgent) | 1839 | ILandChannel landch = m_scene.LandChannel; |
1840 | if (landch != null) | ||
1840 | { | 1841 | { |
1841 | ILandChannel landch = m_scene.LandChannel; | 1842 | landch.sendClientInitialLandInfo(client); |
1842 | if (landch != null) | 1843 | if (!IsChildAgent) |
1843 | { | 1844 | { |
1844 | landch.sendClientInitialLandInfo(client); | ||
1845 | newhide = m_currentParcelHide; | 1845 | newhide = m_currentParcelHide; |
1846 | m_currentParcelHide = false; | 1846 | m_currentParcelHide = false; |
1847 | } | 1847 | } |
@@ -5416,15 +5416,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
5416 | { | 5416 | { |
5417 | foreach (ScenePresence p in viewsToSendme) | 5417 | foreach (ScenePresence p in viewsToSendme) |
5418 | { | 5418 | { |
5419 | if (p.IsChildAgent) | ||
5420 | continue; | ||
5419 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + " " + p.Lastname); | 5421 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + " " + p.Lastname); |
5420 | if (!p.IsChildAgent) | 5422 | ControllingClient.SendAvatarDataImmediate(p); |
5421 | { | 5423 | p.SendAppearanceToAgent(this); |
5422 | ControllingClient.SendAvatarDataImmediate(p); | 5424 | p.SendAttachmentsToClient(ControllingClient); |
5423 | p.SendAppearanceToAgent(this); | 5425 | if (p.Animator != null) |
5424 | p.SendAttachmentsToClient(ControllingClient); | 5426 | p.Animator.SendAnimPackToClient(ControllingClient); |
5425 | if (p.Animator != null) | ||
5426 | p.Animator.SendAnimPackToClient(ControllingClient); | ||
5427 | } | ||
5428 | } | 5427 | } |
5429 | } | 5428 | } |
5430 | } | 5429 | } |
@@ -5526,14 +5525,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
5526 | foreach (ScenePresence p in viewsToSendme) | 5525 | foreach (ScenePresence p in viewsToSendme) |
5527 | { | 5526 | { |
5528 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); | 5527 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); |
5529 | if (!p.IsChildAgent) | 5528 | if (p.IsChildAgent) |
5530 | { | 5529 | continue; |
5531 | ControllingClient.SendAvatarDataImmediate(p); | 5530 | ControllingClient.SendAvatarDataImmediate(p); |
5532 | p.SendAppearanceToAgent(this); | 5531 | p.SendAppearanceToAgent(this); |
5533 | p.SendAttachmentsToClient(ControllingClient); | 5532 | p.SendAttachmentsToClient(ControllingClient); |
5534 | if (p.Animator != null) | 5533 | if (p.Animator != null) |
5535 | p.Animator.SendAnimPackToClient(ControllingClient); | 5534 | p.Animator.SendAnimPackToClient(ControllingClient); |
5536 | } | ||
5537 | } | 5535 | } |
5538 | } | 5536 | } |
5539 | } | 5537 | } |
@@ -5548,7 +5546,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
5548 | 5546 | ||
5549 | if (abort) | 5547 | if (abort) |
5550 | { | 5548 | { |
5551 | |||
5552 | List<ScenePresence> viewsToSendme = new List<ScenePresence>(); | 5549 | List<ScenePresence> viewsToSendme = new List<ScenePresence>(); |
5553 | 5550 | ||
5554 | foreach (ScenePresence p in allpresences) | 5551 | foreach (ScenePresence p in allpresences) |
@@ -5566,15 +5563,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
5566 | { | 5563 | { |
5567 | foreach (ScenePresence p in viewsToSendme) | 5564 | foreach (ScenePresence p in viewsToSendme) |
5568 | { | 5565 | { |
5569 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); | 5566 | if (p.IsChildAgent) |
5570 | if (!p.IsChildAgent) | 5567 | continue; |
5571 | { | 5568 | // m_log.Debug("[AVATAR]: viewMe: " + Lastname + " " + p.Lastname); |
5572 | ControllingClient.SendAvatarDataImmediate(p); | 5569 | ControllingClient.SendAvatarDataImmediate(p); |
5573 | p.SendAppearanceToAgent(this); | 5570 | p.SendAppearanceToAgent(this); |
5574 | p.SendAttachmentsToClient(ControllingClient); | 5571 | p.SendAttachmentsToClient(ControllingClient); |
5575 | if (p.Animator != null) | 5572 | if (p.Animator != null) |
5576 | p.Animator.SendAnimPackToClient(ControllingClient); | 5573 | p.Animator.SendAnimPackToClient(ControllingClient); |
5577 | } | ||
5578 | } | 5574 | } |
5579 | } | 5575 | } |
5580 | } | 5576 | } |
@@ -5768,8 +5764,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
5768 | { | 5764 | { |
5769 | foreach (ScenePresence p in viewsToSendto) | 5765 | foreach (ScenePresence p in viewsToSendto) |
5770 | { | 5766 | { |
5771 | m_log.Debug("[AVATAR]: viewTo: " + Lastname + " " + p.Lastname); | ||
5772 | p.ControllingClient.SendAvatarDataImmediate(this); | 5767 | p.ControllingClient.SendAvatarDataImmediate(this); |
5768 | // m_log.Debug("[AVATAR]: viewTo: " + Lastname + " " + p.Lastname); | ||
5773 | SendAppearanceToAgent(p); | 5769 | SendAppearanceToAgent(p); |
5774 | SendAttachmentsToClient(p.ControllingClient); | 5770 | SendAttachmentsToClient(p.ControllingClient); |
5775 | if (Animator != null) | 5771 | if (Animator != null) |
@@ -5781,15 +5777,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
5781 | { | 5777 | { |
5782 | foreach (ScenePresence p in viewsToSendme) | 5778 | foreach (ScenePresence p in viewsToSendme) |
5783 | { | 5779 | { |
5784 | m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); | 5780 | if (p.IsChildAgent) |
5785 | if (!p.IsChildAgent) | 5781 | continue; |
5786 | { | 5782 | // m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); |
5787 | ControllingClient.SendAvatarDataImmediate(p); | 5783 | ControllingClient.SendAvatarDataImmediate(p); |
5788 | p.SendAppearanceToAgent(this); | 5784 | p.SendAppearanceToAgent(this); |
5789 | p.SendAttachmentsToClient(ControllingClient); | 5785 | p.SendAttachmentsToClient(ControllingClient); |
5790 | if (p.Animator != null) | 5786 | if (p.Animator != null) |
5791 | p.Animator.SendAnimPackToClient(ControllingClient); | 5787 | p.Animator.SendAnimPackToClient(ControllingClient); |
5792 | } | ||
5793 | } | 5788 | } |
5794 | } | 5789 | } |
5795 | } | 5790 | } |