From 50e3797c597baaf665874f5a3d61b57097256fd2 Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Thu, 9 Aug 2007 06:19:41 +0000 Subject: Transition between not flying / flying should be smoother --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index f218895..17c1b3a 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -296,8 +296,12 @@ namespace OpenSim.Region.Environment.Scenes bool DCFlagKeyPressed = false; Vector3 agent_control_v3 = new Vector3(0, 0, 0); Quaternion q = new Quaternion(bodyRotation.W, bodyRotation.X, bodyRotation.Y, bodyRotation.Z); - + bool oldflying = this.PhysActor.Flying; this.PhysActor.Flying = ((flags & (uint)MainAvatar.ControlFlags.AGENT_CONTROL_FLY) != 0); + if (this.PhysActor.Flying != oldflying) + { + update_movementflag = true; + } if (q != this.bodyRot) { @@ -332,6 +336,7 @@ namespace OpenSim.Region.Environment.Scenes this.AddNewMovement(agent_control_v3, q); } UpdateMovementAnimations(update_movementflag); + } protected void UpdateMovementAnimations(bool update_movementflag) -- cgit v1.1