Properly show / hide reflection probes checkbox in built floater

master
PanteraPolnocy 2024-06-22 15:10:09 +02:00
parent aa049b0814
commit cf16839ed9
2 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,7 @@ BOOL LLFloaterTools::postBuild()
LLSelectMgr::instance().setFSShowHideHighlight(FS_SHOW_HIDE_HIGHLIGHT_NORMAL);
mCheckActualRoot = getChild<LLCheckBoxCtrl>("checkbox actual root");
mCheckSelectProbes = getChild<LLCheckBoxCtrl>("checkbox select probes");
// </FS:KC>
@ -428,6 +429,7 @@ LLFloaterTools::LLFloaterTools(const LLSD& key)
// <FS:KC>
mCheckShowHighlight(NULL),
mCheckActualRoot(NULL),
mCheckSelectProbes(NULL),
// </FS:KC>
mBtnRotateLeft(NULL),
@ -1014,6 +1016,7 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)
// <FS:KC>
if (mCheckShowHighlight) mCheckShowHighlight->setVisible( edit_visible );
if (mCheckActualRoot) mCheckActualRoot->setVisible( edit_visible );
if (mCheckSelectProbes) mCheckSelectProbes->setVisible( edit_visible );
// </FS:KC>
// Create buttons

View File

@ -171,6 +171,7 @@ public:
LLCheckBoxCtrl* mCheckStretchTexture;
LLCheckBoxCtrl* mCheckShowHighlight; //Phoenix:KC
LLCheckBoxCtrl* mCheckActualRoot; //Phoenix:KC
LLCheckBoxCtrl* mCheckSelectProbes; // <FS:PP>
// Ansariel: Reverted the hack because then when clicking the label it
// doesn't check the checkbox anymore!