aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Animation
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation')
-rw-r--r--OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
index 9fd5e64..bbc5745 100644
--- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
+++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
475 string newMovementAnimation = DetermineMovementAnimation(); 475 string newMovementAnimation = DetermineMovementAnimation();
476 if (CurrentMovementAnimation != newMovementAnimation) 476 if (CurrentMovementAnimation != newMovementAnimation)
477 { 477 {
478 CurrentMovementAnimation = DetermineMovementAnimation(); 478 CurrentMovementAnimation = newMovementAnimation;
479 479
480// m_log.DebugFormat( 480// m_log.DebugFormat(
481// "[SCENE PRESENCE ANIMATOR]: Determined animation {0} for {1} in UpdateMovementAnimations()", 481// "[SCENE PRESENCE ANIMATOR]: Determined animation {0} for {1} in UpdateMovementAnimations()",
@@ -489,6 +489,19 @@ namespace OpenSim.Region.Framework.Scenes.Animation
489 return ret; 489 return ret;
490 } 490 }
491 491
492 public bool ForceUpdateMovementAnimations()
493 {
494 // m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Updating movement animations for {0}", m_scenePresence.Name);
495
496 bool ret = false;
497 lock (m_animations)
498 {
499 string newMovementAnimation = DetermineMovementAnimation();
500 ret = TrySetMovementAnimation(newMovementAnimation);
501 }
502 return ret;
503 }
504
492 public UUID[] GetAnimationArray() 505 public UUID[] GetAnimationArray()
493 { 506 {
494 UUID[] animIDs; 507 UUID[] animIDs;