From 71388fc02a9e782d5e080ae0fad22fb18e637b20 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 5 Nov 2011 22:41:00 +0000 Subject: Porting the ScenePresenceAnimator from Avination. Jump and fall anims now work properly. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ebb9b0a..287f637 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -2420,7 +2420,11 @@ namespace OpenSim.Region.Framework.Scenes // m_log.Info("[AGENT]: Stop Flying"); //} } - if (!PhysicsActor.Flying && PhysicsActor.IsColliding) + if (Animator.Falling && m_wasFlying) // if falling from flying, disable motion add + { + direc *= 0.0f; + } + else if (!PhysicsActor.Flying && PhysicsActor.IsColliding) { if (direc.Z > 2.0f) { -- cgit v1.1