Adds support for preserving animations on region crossings and TPs.

Known issue: after TP, the self client doesn't see the animations going, but others can see them. So there's a bug there (TPs only, crossings seem to be all fine).
Untested: did not test animation overriders; only tested playing animations from the viewer.
This commit is contained in:
diva
2009-02-18 01:49:18 +00:00
parent c381bee515
commit 3f25128e77
8 changed files with 698 additions and 45 deletions

View File

@@ -904,6 +904,10 @@ namespace OpenSim.Region.Framework.Scenes
avatar.Close();
CloseConnection(avatar.UUID);
}
else
// now we have a child agent in this region.
avatar.Reset();
// if (teleport success) // seems to be always success here
// the user may change their profile information in other region,
@@ -1180,8 +1184,7 @@ namespace OpenSim.Region.Framework.Scenes
// If the cross was successful, this agent is a child agent
if (agent.IsChildAgent)
{
// Put the child agent back at the center
agent.AbsolutePosition = new Vector3(128, 128, 70);
agent.Reset();
}
else // Not successful
{