From f7e44250bf6058a7f232b5555d709787f1a2eb6b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 26 Oct 2008 19:32:41 +0000 Subject: Committing a small fix for EventData along with more plumbing work --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index a8476fd..38427cf 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -284,6 +284,14 @@ namespace OpenSim.Region.Environment.Scenes get { return m_lastname; } } + private string m_grouptitle; + + public string Grouptitle + { + get { return m_grouptitle; } + set { m_grouptitle = value; } + } + public float DrawDistance { get { return m_DrawDistance; } @@ -484,6 +492,10 @@ namespace OpenSim.Region.Environment.Scenes m_regionInfo = reginfo; m_localId = m_scene.NextLocalId; + IGroupsModule gm = m_scene.RequestModuleInterface(); + if (gm != null) + m_grouptitle = gm.GetGroupTitle(m_uuid); + AbsolutePosition = m_controllingClient.StartPos; TrySetMovementAnimation("STAND"); // TODO: I think, this won't send anything, as we are still a child here... @@ -691,6 +703,10 @@ namespace OpenSim.Region.Environment.Scenes /// public void MakeRootAgent(Vector3 pos, bool isFlying) { + IGroupsModule gm = m_scene.RequestModuleInterface(); + if (gm != null) + m_grouptitle = gm.GetGroupTitle(m_uuid); + m_scene.SetRootAgentScene(m_uuid); IAvatarFactory ava = m_scene.RequestModuleInterface(); @@ -1755,7 +1771,7 @@ namespace OpenSim.Region.Environment.Scenes // Note: because Quaternion is a struct, it can't be null Quaternion rot = m_bodyRot; - remoteAvatar.m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid, + remoteAvatar.m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_grouptitle, m_uuid, LocalId, m_pos, m_appearance.Texture.ToBytes(), m_parentID, rot); m_scene.AddAgentUpdates(1); @@ -1804,6 +1820,8 @@ namespace OpenSim.Region.Environment.Scenes } m_scene.AddAgentUpdates(avatars.Count); m_scene.AddAgentTime(System.Environment.TickCount - m_perfMonMS); + + SendAnimPack(); } /// @@ -1818,7 +1836,7 @@ namespace OpenSim.Region.Environment.Scenes // Note: because Quaternion is a struct, it can't be null Quaternion rot = m_bodyRot; - m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_uuid, LocalId, + m_controllingClient.SendAvatarData(m_regionInfo.RegionHandle, m_firstname, m_lastname, m_grouptitle, m_uuid, LocalId, m_pos, m_appearance.Texture.ToBytes(), m_parentID, rot); if (!m_isChildAgent) -- cgit v1.1