If a user moves back in sight of a child region before the agent has been closed on teleport, don't unnecessarily resend all avatar and object data about that region.

This commit is contained in:
Justin Clark-Casey (justincc)
2014-08-15 21:46:28 +01:00
parent 91e1aaa5d4
commit e0c6bfa81e
3 changed files with 9 additions and 7 deletions

View File

@@ -1740,7 +1740,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(uccp.CircuitCode.Code);
bool tp = (aCircuit.teleportFlags > 0);
// Let's delay this for TP agents, otherwise the viewer doesn't know where to get resources from
if (!tp)
if (!tp && !client.SceneAgent.SentInitialDataToClient)
client.SceneAgent.SendInitialDataToClient();
}
}