diff options
author | Justin Clark-Casey (justincc) | 2011-12-03 01:47:12 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-03 01:47:12 +0000 |
commit | f08aad8a403e18625c01c0b3b4b6d4248476a64b (patch) | |
tree | 633857377e66c44f9048f9c75be6eb0e7221f98c /OpenSim/Region/Framework/Scenes/Animation | |
parent | refactor: Use just ScenePresenceAnimator.CurrentMovementAnimation rather than... (diff) | |
download | opensim-SC-f08aad8a403e18625c01c0b3b4b6d4248476a64b.zip opensim-SC-f08aad8a403e18625c01c0b3b4b6d4248476a64b.tar.gz opensim-SC-f08aad8a403e18625c01c0b3b4b6d4248476a64b.tar.bz2 opensim-SC-f08aad8a403e18625c01c0b3b4b6d4248476a64b.tar.xz |
For now, disable mechanism to limit avatar animation updates since this causes avatars to never reach the correct animation after some actions.
This reverts to situation where animation updates are made each frame on SP.PhysicsCollisionUpdate (though a packet is only sent if the anim actually changes).
m_updateCount was not being update on various avatar state changes, causing the correct animations to never be sent.
Always setting in HandleAgentUpdate() is not enough since the avatar is continually sending AgentUpdate packets.
One would need to identify all the conditions under which animations need to play out and set m_updateCount appropriately in SP.HandleAgentUpdate()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Animation')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs index 2a6b8ea..43cfd80 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | |||
@@ -399,6 +399,11 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
399 | public void UpdateMovementAnimations() | 399 | public void UpdateMovementAnimations() |
400 | { | 400 | { |
401 | CurrentMovementAnimation = DetermineMovementAnimation(); | 401 | CurrentMovementAnimation = DetermineMovementAnimation(); |
402 | |||
403 | // m_log.DebugFormat( | ||
404 | // "[SCENE PRESENCE ANIMATOR]: Determined animation {0} for {1} in UpdateMovementAnimations()", | ||
405 | // CurrentMovementAnimation, m_scenePresence.Name); | ||
406 | |||
402 | TrySetMovementAnimation(CurrentMovementAnimation); | 407 | TrySetMovementAnimation(CurrentMovementAnimation); |
403 | } | 408 | } |
404 | 409 | ||