mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
force update of movement animation
This commit is contained in:
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
string newMovementAnimation = DetermineMovementAnimation();
|
||||
if (CurrentMovementAnimation != newMovementAnimation)
|
||||
{
|
||||
CurrentMovementAnimation = DetermineMovementAnimation();
|
||||
CurrentMovementAnimation = newMovementAnimation;
|
||||
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE PRESENCE ANIMATOR]: Determined animation {0} for {1} in UpdateMovementAnimations()",
|
||||
@@ -489,6 +489,19 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool ForceUpdateMovementAnimations()
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Updating movement animations for {0}", m_scenePresence.Name);
|
||||
|
||||
bool ret = false;
|
||||
lock (m_animations)
|
||||
{
|
||||
string newMovementAnimation = DetermineMovementAnimation();
|
||||
ret = TrySetMovementAnimation(newMovementAnimation);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public UUID[] GetAnimationArray()
|
||||
{
|
||||
UUID[] animIDs;
|
||||
|
||||
@@ -6040,7 +6040,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
Overrides.SetOverride(animState, animID);
|
||||
// Animator.SendAnimPack();
|
||||
Animator.UpdateMovementAnimations();
|
||||
Animator.ForceUpdateMovementAnimations();
|
||||
}
|
||||
|
||||
public UUID GetAnimationOverride(string animState)
|
||||
|
||||
Reference in New Issue
Block a user