mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Store and send the current movement animation state to a new sim on crossing
This commit is contained in:
@@ -45,6 +45,11 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
private OpenSim.Framework.Animation m_defaultAnimation = new OpenSim.Framework.Animation();
|
||||
private List<OpenSim.Framework.Animation> m_animations = new List<OpenSim.Framework.Animation>();
|
||||
|
||||
public OpenSim.Framework.Animation DefaultAnimation
|
||||
{
|
||||
get { return m_defaultAnimation; }
|
||||
}
|
||||
|
||||
public OpenSim.Framework.Animation ImplicitDefaultAnimation
|
||||
{
|
||||
get { return m_implicitDefaultAnimation; }
|
||||
@@ -126,6 +131,12 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
return false;
|
||||
}
|
||||
|
||||
// Called from serialization only
|
||||
public void SetImplicitDefaultAnimation(UUID animID, int sequenceNum, UUID objectID)
|
||||
{
|
||||
m_implicitDefaultAnimation = new OpenSim.Framework.Animation(animID, sequenceNum, objectID);
|
||||
}
|
||||
|
||||
protected bool ResetDefaultAnimation()
|
||||
{
|
||||
return TrySetDefaultAnimation("STAND", 1, UUID.Zero);
|
||||
|
||||
Reference in New Issue
Block a user