From 6c5231d56ece96eb53fa349a8733338353c3cedb Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 26 Jul 2024 15:20:37 +0200 Subject: [PATCH] Fix broken callback initialization for PBR terrain panel --- indra/newview/llfloaterregioninfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index 6caf972b39..e2820c375d 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -912,8 +912,11 @@ void LLPanelRegionInfo::initCtrl(const std::string& name) template void LLPanelRegionInfo::initAndSetCtrl(CTRL*& ctrl, const std::string& name) { - initCtrl(name); + // Fix broken initialization + //initCtrl(name); ctrl = findChild(name); + if (ctrl) + ctrl->setCommitCallback(boost::bind(&LLPanelRegionInfo::onChangeAnything, this)); } void LLPanelRegionInfo::onClickManageTelehub()