summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorEli Linden <eli@lindenlab.com>2010-04-19 12:53:59 -0700
committerEli Linden <eli@lindenlab.com>2010-04-19 12:53:59 -0700
commit5f80e5681c7a0e9f0fc5889ede435c79358fc639 (patch)
treeee9e5826ee220a971aa7990ef83a64644bf644d9 /indra/newview/llagent.cpp
parenta1a43f7942f68e75eaadaa9c5280ac196c4ed6a7 (diff)
parent7f0a7789903809d489e9f85575be18c88df1ea98 (diff)
Merge
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index ec465358fa..8bcf680876 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -1295,6 +1295,8 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)
{
resetAxes(mAutoPilotTargetFacing);
}
+ // Restore previous flying state before invoking mAutoPilotFinishedCallback to allow
+ // callback function to change the flying state (like in near_sit_down_point()).
// If the user cancelled, don't change the fly state
if (!user_cancel)
{