From f3e4000a552e5dcb7d3f3612badb622e1d412055 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 18 Nov 2010 13:26:35 +0100 Subject: [PATCH] Send media and other parcel data to client on login. Makes streams visible right away and starts media. --- OpenSim/Region/Framework/Scenes/Scene.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 3ae8a3853a..a0ae82f247 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2706,12 +2706,19 @@ namespace OpenSim.Region.Framework.Scenes } } - if (GetScenePresence(client.AgentId) != null) + if (TryGetScenePresence(client.AgentId, out presence)) { m_LastLogin = Util.EnvironmentTickCount(); EventManager.TriggerOnNewClient(client); if (vialogin) + { EventManager.TriggerOnClientLogin(client); + + // Send initial parcel data + Vector3 pos = presence.AbsolutePosition; + ILandObject land = LandChannel.GetLandObject(pos.X, pos.Y); + land.SendLandUpdateToClient(presence.ControllingClient); + } } }