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 pointmaster
parent
5b92d266df
commit
f41839e2b9
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -170,7 +170,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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -287,7 +287,10 @@ LLManipTranslate::~LLManipTranslate()
|
|||
void LLManipTranslate::handleSelect()
|
||||
{
|
||||
LLSelectMgr::getInstance()->saveSelectedObjectTransform(SELECT_ACTION_TYPE_PICK);
|
||||
gFloaterTools->setStatusText("move");
|
||||
if (gFloaterTools)
|
||||
{
|
||||
gFloaterTools->setStatusText("move");
|
||||
}
|
||||
LLManip::handleSelect();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue