mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user