diff options
author | UbitUmarov | 2014-09-09 22:27:21 +0100 |
---|---|---|
committer | UbitUmarov | 2014-09-09 22:27:21 +0100 |
commit | e37fd5e716a44a57290d87239d52b2b62c0dae4a (patch) | |
tree | 5b33929449d9745a503c9950c1eed6abcf9f531a /OpenSim/Region/Framework/Scenes/Animation | |
parent | on SetAnimationOverride do a UpdateMovementAnimations(); (diff) | |
download | opensim-SC-e37fd5e716a44a57290d87239d52b2b62c0dae4a.zip opensim-SC-e37fd5e716a44a57290d87239d52b2b62c0dae4a.tar.gz opensim-SC-e37fd5e716a44a57290d87239d52b2b62c0dae4a.tar.bz2 opensim-SC-e37fd5e716a44a57290d87239d52b2b62c0dae4a.tar.xz |
force update of movement animation
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | 15 |
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; |