diff options
author | UbitUmarov | 2014-08-19 06:23:30 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-19 06:23:30 +0100 |
commit | 65983cc4fcef4ebba0d288301b8db73ee0981992 (patch) | |
tree | 25442ccfd955af2b8deac58c19552aa36ee5c4e9 /OpenSim/Region/Framework/Scenes | |
parent | send the avatar data after sending attachments, by the same Entity updates (diff) | |
download | opensim-SC_OLD-65983cc4fcef4ebba0d288301b8db73ee0981992.zip opensim-SC_OLD-65983cc4fcef4ebba0d288301b8db73ee0981992.tar.gz opensim-SC_OLD-65983cc4fcef4ebba0d288301b8db73ee0981992.tar.bz2 opensim-SC_OLD-65983cc4fcef4ebba0d288301b8db73ee0981992.tar.xz |
test
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f58d7f2..6208416 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1882,9 +1882,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1882 | ValidateAndSendAppearanceAndAgentData(); | 1882 | ValidateAndSendAppearanceAndAgentData(); |
1883 | 1883 | ||
1884 | m_log.DebugFormat("[CompleteMovement] ValidateAndSendAppearanceAndAgentData: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1884 | m_log.DebugFormat("[CompleteMovement] ValidateAndSendAppearanceAndAgentData: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
1885 | 1885 | ||
1886 | List<SceneObjectGroup> attachments = GetAttachments(); | ||
1887 | |||
1888 | // attachments | 1886 | // attachments |
1889 | if (isNPC || (TeleportFlags & TeleportFlags.ViaLogin) != 0) | 1887 | if (isNPC || (TeleportFlags & TeleportFlags.ViaLogin) != 0) |
1890 | { | 1888 | { |
@@ -1897,13 +1895,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
1897 | } | 1895 | } |
1898 | else | 1896 | else |
1899 | { | 1897 | { |
1900 | if (attachments.Count > 0) | 1898 | if (m_attachments.Count > 0) |
1901 | { | 1899 | { |
1902 | m_log.DebugFormat( | 1900 | m_log.DebugFormat( |
1903 | "[SCENE PRESENCE]: Restarting scripts in attachments for {0} in {1}", Name, Scene.Name); | 1901 | "[SCENE PRESENCE]: Restarting scripts in attachments for {0} in {1}", Name, Scene.Name); |
1904 | 1902 | ||
1905 | // Resume scripts this possible should also be moved down after sending the avatar to viewer ? | 1903 | // Resume scripts this possible should also be moved down after sending the avatar to viewer ? |
1906 | foreach (SceneObjectGroup sog in attachments) | 1904 | foreach (SceneObjectGroup sog in m_attachments) |
1907 | { | 1905 | { |
1908 | // sog.ScheduleGroupForFullUpdate(); | 1906 | // sog.ScheduleGroupForFullUpdate(); |
1909 | m_scene.ForEachScenePresence(delegate(ScenePresence p) | 1907 | m_scene.ForEachScenePresence(delegate(ScenePresence p) |
@@ -5809,9 +5807,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
5809 | p.ControllingClient.SendAvatarDataImmediate(this); | 5807 | p.ControllingClient.SendAvatarDataImmediate(this); |
5810 | // m_log.Debug("[AVATAR]: viewTo: " + Lastname + " " + p.Lastname); | 5808 | // m_log.Debug("[AVATAR]: viewTo: " + Lastname + " " + p.Lastname); |
5811 | SendAppearanceToAgent(p); | 5809 | SendAppearanceToAgent(p); |
5812 | SendAttachmentsToAgentNF(p); | ||
5813 | if (Animator != null) | 5810 | if (Animator != null) |
5814 | Animator.SendAnimPackToClient(p.ControllingClient); | 5811 | Animator.SendAnimPackToClient(p.ControllingClient); |
5812 | SendAttachmentsToAgentNF(p); | ||
5815 | } | 5813 | } |
5816 | } | 5814 | } |
5817 | 5815 | ||
@@ -5824,9 +5822,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
5824 | // m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); | 5822 | // m_log.Debug("[AVATAR]: viewMe: " + Lastname + "<-" + p.Lastname); |
5825 | ControllingClient.SendAvatarDataImmediate(p); | 5823 | ControllingClient.SendAvatarDataImmediate(p); |
5826 | p.SendAppearanceToAgent(this); | 5824 | p.SendAppearanceToAgent(this); |
5827 | p.SendAttachmentsToAgentNF(this); | ||
5828 | if (p.Animator != null) | 5825 | if (p.Animator != null) |
5829 | p.Animator.SendAnimPackToClient(ControllingClient); | 5826 | p.Animator.SendAnimPackToClient(ControllingClient); |
5827 | p.SendAttachmentsToAgentNF(this); | ||
5830 | } | 5828 | } |
5831 | } | 5829 | } |
5832 | } | 5830 | } |