diff options
| -rw-r--r-- | indra/newview/llagentlistener.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/indra/newview/llagentlistener.cpp b/indra/newview/llagentlistener.cpp index d0361bf768..8476c4847a 100644 --- a/indra/newview/llagentlistener.cpp +++ b/indra/newview/llagentlistener.cpp @@ -220,6 +220,11 @@ void LLAgentListener::startAutoPilot(LLSD const & event) const      {          rotation_threshold = event["rotation_threshold"].asReal();      } +	if (event.has("fly")) +	{ +		mAgent.setFlying(event["fly"].asBoolean()); +	} +      mAgent.startAutoPilotGlobal(ll_vector3d_from_sd(event["target_global"]),                                  event["behavior_name"],                                  target_rotation, @@ -240,6 +245,7 @@ void LLAgentListener::getAutoPilot(const LLSD& event) const                ("target_facing", ll_sd_from_vector3(mAgent.getAutoPilotTargetFacing()))                ("rotation_threshold", mAgent.getAutoPilotRotationThreshold())                ("behavior_name", mAgent.getAutoPilotBehaviorName()), +              ("fly", (LLSD::Boolean) mAgent.getFlying()),                event);  } | 
