Send media and other parcel data to client on login. Makes streams visible
right away and starts media.avinationmerge
parent
47f0468995
commit
f3e4000a55
|
@ -2706,12 +2706,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetScenePresence(client.AgentId) != null)
|
if (TryGetScenePresence(client.AgentId, out presence))
|
||||||
{
|
{
|
||||||
m_LastLogin = Util.EnvironmentTickCount();
|
m_LastLogin = Util.EnvironmentTickCount();
|
||||||
EventManager.TriggerOnNewClient(client);
|
EventManager.TriggerOnNewClient(client);
|
||||||
if (vialogin)
|
if (vialogin)
|
||||||
|
{
|
||||||
EventManager.TriggerOnClientLogin(client);
|
EventManager.TriggerOnClientLogin(client);
|
||||||
|
|
||||||
|
// Send initial parcel data
|
||||||
|
Vector3 pos = presence.AbsolutePosition;
|
||||||
|
ILandObject land = LandChannel.GetLandObject(pos.X, pos.Y);
|
||||||
|
land.SendLandUpdateToClient(presence.ControllingClient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue