Fix broken callback initialization for PBR terrain panel

meow-7.2.2
Ansariel 2024-07-26 15:20:37 +02:00
parent 9a86b315d9
commit 6c5231d56e
1 changed files with 4 additions and 1 deletions

View File

@ -912,8 +912,11 @@ void LLPanelRegionInfo::initCtrl(const std::string& name)
template<typename CTRL>
void LLPanelRegionInfo::initAndSetCtrl(CTRL*& ctrl, const std::string& name)
{
initCtrl(name);
// <FS:Ansariel> Fix broken initialization
//initCtrl(name);
ctrl = findChild<CTRL>(name);
if (ctrl)
ctrl->setCommitCallback(boost::bind(&LLPanelRegionInfo::onChangeAnything, this));
}
void LLPanelRegionInfo::onClickManageTelehub()