diff options
-rw-r--r-- | indra/newview/llagent.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llselectmgr.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index caeee9f210..8951d0ef33 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -834,6 +834,8 @@ void LLAgent::setRegion(LLViewerRegion *regionp) // we could trake this at the dataserver side, but that's harder U64 handle = regionp->getHandle(); mRegionsVisited.insert(handle); + + gSelectMgr->updateSelectionCenter(); } diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 268ea8c363..046029ea1e 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5532,7 +5532,7 @@ void LLSelectMgr::updateSelectionCenter() } } - if ( !(gAgentID == LLUUID::null) ) + if ( !(gAgentID == LLUUID::null) && gToolMgr) { LLTool *tool = gToolMgr->getCurrentTool(); if (mShowSelection) |