If SP.MoveToTarget has been called with a force walk, begin by landing the avatar.

There is a bug here - once an avatar has landed it glides to its new position instead of performing a walk animation
This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-11 00:23:54 +01:00
parent 7f499ff3f3
commit 951ffad81e
2 changed files with 8 additions and 2 deletions

View File

@@ -1723,7 +1723,9 @@ namespace OpenSim.Region.Framework.Scenes
"[SCENE PRESENCE]: Avatar {0} set move to target {1} (terrain height {2}) in {3}",
Name, pos, terrainHeight, m_scene.RegionInfo.RegionName);
if (!noFly && pos.Z > terrainHeight)
if (noFly)
PhysicsActor.Flying = false;
else if (pos.Z > terrainHeight)
PhysicsActor.Flying = true;
MovingToTarget = true;