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

@@ -153,5 +153,27 @@ namespace OpenSim.Region.Framework.Scenes
}
}
}
public Animation[] ToArray()
{
Animation[] theArray = new Animation[m_animations.Count];
uint i = 0;
try
{
foreach (Animation anim in m_animations)
theArray[i++] = anim;
}
catch
{
/* S%^t happens. Ignore. */
}
return theArray;
}
public void FromArray(Animation[] theArray)
{
foreach (Animation anim in theArray)
m_animations.Add(anim);
}
}
}