Fix bug in HG attachment throttling code where attachments were never rezzed on any teleport within a foreign grid after the first.

Bug was introduced in ghosts branch commit 69abade
mb-throttle-test
Justin Clark-Casey (justincc) 2014-11-21 21:34:18 +00:00
parent 4b45a1b6ad
commit 66b1c37973
1 changed files with 64 additions and 56 deletions

View File

@ -583,7 +583,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
// foreign user
AgentCircuitData aCircuit = Scene.AuthenticateHandler.GetAgentCircuitData(so.OwnerID);
if (aCircuit != null && (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0)
if (aCircuit != null)
{
if ((aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) == 0)
{
// We have already pulled the necessary attachments from the source grid.
base.HandleIncomingSceneObject(so, newPosition);
}
else
{
if (aCircuit.ServiceURLs != null && aCircuit.ServiceURLs.ContainsKey("AssetServerURI"))
{
@ -660,6 +667,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
null);
}
}
}
return true;
}