Stops animations on Teleports, to conform with what the viewer does.

This commit is contained in:
diva
2009-02-18 21:28:54 +00:00
parent 89f2589f6c
commit f1795fd9b0
3 changed files with 11 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>();
// Reset animations; the viewer does that in teleports.
avatar.ResetAnimations();
if (regionHandle == m_regionInfo.RegionHandle)
{
// Teleport within the same region