SL-15403 Crash at LLFloaterTools's setStatusText

On shutdown some floaters reset tools using LLToolMgr::setCurrentToolset and it updates LLFloaterTools, which might be dead by that point
meow-7.2.2
Andrey Kleshchev 2021-06-15 22:15:41 +03:00 committed by Ansariel
parent 4d34a7230d
commit c878a9c696
3 changed files with 12 additions and 3 deletions

View File

@ -105,7 +105,10 @@ void LLManipRotate::handleSelect()
{
// *FIX: put this in mouseDown?
LLSelectMgr::getInstance()->saveSelectedObjectTransform(SELECT_ACTION_TYPE_PICK);
gFloaterTools->setStatusText("rotate");
if (gFloaterTools)
{
gFloaterTools->setStatusText("rotate");
}
LLManip::handleSelect();
}

View File

@ -182,7 +182,10 @@ void LLManipScale::handleSelect()
LLBBox bbox = LLSelectMgr::getInstance()->getBBoxOfSelection();
updateSnapGuides(bbox);
LLSelectMgr::getInstance()->saveSelectedObjectTransform(SELECT_ACTION_TYPE_PICK);
gFloaterTools->setStatusText("scale");
if (gFloaterTools)
{
gFloaterTools->setStatusText("scale");
}
LLManip::handleSelect();
}

View File

@ -291,7 +291,10 @@ LLManipTranslate::~LLManipTranslate()
void LLManipTranslate::handleSelect()
{
LLSelectMgr::getInstance()->saveSelectedObjectTransform(SELECT_ACTION_TYPE_PICK);
gFloaterTools->setStatusText("move");
if (gFloaterTools)
{
gFloaterTools->setStatusText("move");
}
LLManip::handleSelect();
}