diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index bb3317005..32c43c992 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -289,11 +289,6 @@ LLAgentCamera::~LLAgentCamera() //----------------------------------------------------------------------------- void LLAgentCamera::resetView(BOOL reset_camera, BOOL change_camera) { - if (gAgent.getAutoPilot()) - { - gAgent.stopAutoPilot(TRUE); - } - LLSelectMgr::getInstance()->unhighlightAll(); // By popular request, keep land selection while walking around. JC diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 5a205d93c..8436161dd 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -4084,6 +4084,11 @@ void handle_reset_view() } else { + if (gAgent.getAutoPilot()) + { + gAgent.stopAutoPilot(true); + } + reset_view_final( true ); } }