aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-08-03 22:38:50 +0100
committerUbitUmarov2014-08-03 22:38:50 +0100
commit0d71a2bb8fe90bfaaae4e62d921dbf94e69064b4 (patch)
tree1cf6e76443747449156d6cfcc629749f6f6e4c15 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parent remove debug msgs at attachments deRez (diff)
downloadopensim-SC-0d71a2bb8fe90bfaaae4e62d921dbf94e69064b4.zip
opensim-SC-0d71a2bb8fe90bfaaae4e62d921dbf94e69064b4.tar.gz
opensim-SC-0d71a2bb8fe90bfaaae4e62d921dbf94e69064b4.tar.bz2
opensim-SC-0d71a2bb8fe90bfaaae4e62d921dbf94e69064b4.tar.xz
mess update ( hide avatars )
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs60
1 files changed, 35 insertions, 25 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 7b0b103..03eac77 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -178,7 +178,7 @@ namespace OpenSim.Region.Framework.Scenes
178 if (land != null && !land.LandData.SeeAVs) 178 if (land != null && !land.LandData.SeeAVs)
179 m_currentParcelHide = true; 179 m_currentParcelHide = true;
180 180
181 if (m_previusParcelUUID != UUID.Zero) 181 if (m_previusParcelUUID != UUID.Zero || checksame)
182 ParcelCrossCheck(m_currentParcelUUID,m_previusParcelUUID,m_currentParcelHide, m_previusParcelHide, oldhide,checksame); 182 ParcelCrossCheck(m_currentParcelUUID,m_previusParcelUUID,m_currentParcelHide, m_previusParcelHide, oldhide,checksame);
183 } 183 }
184 } 184 }
@@ -1847,7 +1847,6 @@ namespace OpenSim.Region.Framework.Scenes
1847 } 1847 }
1848 } 1848 }
1849 1849
1850
1851 // send agentData to all clients including us (?) 1850 // send agentData to all clients including us (?)
1852 // get appearance 1851 // get appearance
1853 // if in cache sent it to all clients 1852 // if in cache sent it to all clients
@@ -1857,7 +1856,7 @@ namespace OpenSim.Region.Framework.Scenes
1857 // attachments 1856 // attachments
1858 if (isNPC || (TeleportFlags & TeleportFlags.ViaLogin) != 0) 1857 if (isNPC || (TeleportFlags & TeleportFlags.ViaLogin) != 0)
1859 { 1858 {
1860// if (Scene.AttachmentsModule != null) 1859 if (Scene.AttachmentsModule != null)
1861// Util.FireAndForget( 1860// Util.FireAndForget(
1862// o => 1861// o =>
1863// { 1862// {
@@ -5418,11 +5417,14 @@ namespace OpenSim.Region.Framework.Scenes
5418 foreach (ScenePresence p in viewsToSendme) 5417 foreach (ScenePresence p in viewsToSendme)
5419 { 5418 {
5420 m_log.Debug("[AVATAR]: viewMe: " + Lastname + " " + p.Lastname); 5419 m_log.Debug("[AVATAR]: viewMe: " + Lastname + " " + p.Lastname);
5421 ControllingClient.SendAvatarDataImmediate(p); 5420 if (!p.IsChildAgent)
5422 p.SendAppearanceToAgent(this); 5421 {
5423 p.SendAttachmentsToClient(ControllingClient); 5422 ControllingClient.SendAvatarDataImmediate(p);
5424 if (p.Animator != null) 5423 p.SendAppearanceToAgent(this);
5425 p.Animator.SendAnimPackToClient(ControllingClient); 5424 p.SendAttachmentsToClient(ControllingClient);
5425 if (p.Animator != null)
5426 p.Animator.SendAnimPackToClient(ControllingClient);
5427 }
5426 } 5428 }
5427 } 5429 }
5428 } 5430 }
@@ -5524,11 +5526,14 @@ namespace OpenSim.Region.Framework.Scenes
5524 foreach (ScenePresence p in viewsToSendme) 5526 foreach (ScenePresence p in viewsToSendme)
5525 { 5527 {
5526 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); 5528 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname);
5527 ControllingClient.SendAvatarDataImmediate(p); 5529 if (!p.IsChildAgent)
5528 p.SendAppearanceToAgent(this); 5530 {
5529 p.SendAttachmentsToClient(ControllingClient); 5531 ControllingClient.SendAvatarDataImmediate(p);
5530 if (p.Animator != null) 5532 p.SendAppearanceToAgent(this);
5531 p.Animator.SendAnimPackToClient(ControllingClient); 5533 p.SendAttachmentsToClient(ControllingClient);
5534 if (p.Animator != null)
5535 p.Animator.SendAnimPackToClient(ControllingClient);
5536 }
5532 } 5537 }
5533 } 5538 }
5534 } 5539 }
@@ -5562,11 +5567,14 @@ namespace OpenSim.Region.Framework.Scenes
5562 foreach (ScenePresence p in viewsToSendme) 5567 foreach (ScenePresence p in viewsToSendme)
5563 { 5568 {
5564 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); 5569 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname);
5565 ControllingClient.SendAvatarDataImmediate(p); 5570 if (!p.IsChildAgent)
5566 p.SendAppearanceToAgent(this); 5571 {
5567 p.SendAttachmentsToClient(ControllingClient); 5572 ControllingClient.SendAvatarDataImmediate(p);
5568 if (p.Animator != null) 5573 p.SendAppearanceToAgent(this);
5569 p.Animator.SendAnimPackToClient(ControllingClient); 5574 p.SendAttachmentsToClient(ControllingClient);
5575 if (p.Animator != null)
5576 p.Animator.SendAnimPackToClient(ControllingClient);
5577 }
5570 } 5578 }
5571 } 5579 }
5572 } 5580 }
@@ -5629,8 +5637,7 @@ namespace OpenSim.Region.Framework.Scenes
5629 5637
5630 // those on not on parcel see me 5638 // those on not on parcel see me
5631 if (currentParcelID != p.currentParcelUUID) 5639 if (currentParcelID != p.currentParcelUUID)
5632 { 5640 {
5633 m_log.Debug("[AVATAR]: viewTo: " + Lastname + " " + p.Lastname);
5634 viewsToSendto.Add(p); // they see me 5641 viewsToSendto.Add(p); // they see me
5635 } 5642 }
5636 } 5643 }
@@ -5775,11 +5782,14 @@ namespace OpenSim.Region.Framework.Scenes
5775 foreach (ScenePresence p in viewsToSendme) 5782 foreach (ScenePresence p in viewsToSendme)
5776 { 5783 {
5777 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); 5784 m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname);
5778 ControllingClient.SendAvatarDataImmediate(p); 5785 if (!p.IsChildAgent)
5779 p.SendAppearanceToAgent(this); 5786 {
5780 p.SendAttachmentsToClient(ControllingClient); 5787 ControllingClient.SendAvatarDataImmediate(p);
5781 if (p.Animator != null) 5788 p.SendAppearanceToAgent(this);
5782 p.Animator.SendAnimPackToClient(ControllingClient); 5789 p.SendAttachmentsToClient(ControllingClient);
5790 if (p.Animator != null)
5791 p.Animator.SendAnimPackToClient(ControllingClient);
5792 }
5783 } 5793 }
5784 } 5794 }
5785 } 5795 }