SH-1444 "Allow mesh objects" setting is visible on a non-mesh region.
parent
781af27e9c
commit
155d96000f
|
|
@ -590,6 +590,11 @@ bool LLPanelRegionGeneralInfo::refreshFromRegion(LLViewerRegion* region)
|
|||
getChildView("im_btn")->setEnabled(allow_modify);
|
||||
getChildView("manage_telehub_btn")->setEnabled(allow_modify);
|
||||
|
||||
const bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled") &&
|
||||
gAgent.getRegion() &&
|
||||
!gAgent.getRegion()->getCapability("GetMesh").empty();
|
||||
getChildView("mesh_rez_enabled_check")->setVisible(enable_mesh);
|
||||
getChildView("mesh_rez_enabled_check")->setEnabled(getChildView("mesh_rez_enabled_check")->getEnabled() && enable_mesh);
|
||||
// Data gets filled in by processRegionInfo
|
||||
|
||||
return LLPanelRegionInfo::refreshFromRegion(region);
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@
|
|||
top="190"
|
||||
width="80" />
|
||||
<check_box
|
||||
visible="FALSE"
|
||||
height="20"
|
||||
label="Allow Mesh Objects"
|
||||
layout="topleft"
|
||||
|
|
|
|||
Loading…
Reference in New Issue