From cf16839ed9c590a950e013dcd7156c5d76f1480d Mon Sep 17 00:00:00 2001 From: PanteraPolnocy Date: Sat, 22 Jun 2024 15:10:09 +0200 Subject: [PATCH] Properly show / hide reflection probes checkbox in built floater --- indra/newview/llfloatertools.cpp | 3 +++ indra/newview/llfloatertools.h | 1 + 2 files changed, 4 insertions(+) diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 925b2b9cdb..5f6fa6bd57 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -302,6 +302,7 @@ BOOL LLFloaterTools::postBuild() LLSelectMgr::instance().setFSShowHideHighlight(FS_SHOW_HIDE_HIGHLIGHT_NORMAL); mCheckActualRoot = getChild("checkbox actual root"); + mCheckSelectProbes = getChild("checkbox select probes"); // @@ -428,6 +429,7 @@ LLFloaterTools::LLFloaterTools(const LLSD& key) // mCheckShowHighlight(NULL), mCheckActualRoot(NULL), + mCheckSelectProbes(NULL), // mBtnRotateLeft(NULL), @@ -1014,6 +1016,7 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask) // if (mCheckShowHighlight) mCheckShowHighlight->setVisible( edit_visible ); if (mCheckActualRoot) mCheckActualRoot->setVisible( edit_visible ); + if (mCheckSelectProbes) mCheckSelectProbes->setVisible( edit_visible ); // // Create buttons diff --git a/indra/newview/llfloatertools.h b/indra/newview/llfloatertools.h index 4eb3731fda..7b4f893465 100644 --- a/indra/newview/llfloatertools.h +++ b/indra/newview/llfloatertools.h @@ -171,6 +171,7 @@ public: LLCheckBoxCtrl* mCheckStretchTexture; LLCheckBoxCtrl* mCheckShowHighlight; //Phoenix:KC LLCheckBoxCtrl* mCheckActualRoot; //Phoenix:KC + LLCheckBoxCtrl* mCheckSelectProbes; // // Ansariel: Reverted the hack because then when clicking the label it // doesn't check the checkbox anymore!