mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Send media and other parcel data to client on login. Makes streams visible
right away and starts media.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user