diff options
| author | Graham Linden <graham@lindenlab.com> | 2019-01-07 08:19:30 -0800 |
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2019-01-07 08:19:30 -0800 |
| commit | 40208fd820cf99681aff01d0cd688c861ae7acb7 (patch) | |
| tree | e4d60a88e3641304bab71ad18c1eac6d77b2a4ec /indra/newview/llpanelenvironment.cpp | |
| parent | 75171ee5d1a68e25abe899fdb997ba6df06f7529 (diff) | |
| parent | 64e45b5b6ef8ded7bbea1b376e5bf2cbb0d6f5a4 (diff) | |
Merge
Diffstat (limited to 'indra/newview/llpanelenvironment.cpp')
| -rw-r--r-- | indra/newview/llpanelenvironment.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp index 3e0bb43d71..a150e66085 100644 --- a/indra/newview/llpanelenvironment.cpp +++ b/indra/newview/llpanelenvironment.cpp @@ -299,9 +299,11 @@ void LLPanelEnvironmentInfo::refreshFromEstate() { /*TODO: Unfortunately only estate manager may get information from the LLEstateInfoModel. * The proletariat is not allowed to know what options are set for an estate. We should fix this.*/ + LLViewerRegion *pRegion = gAgent.getRegion(); bool oldAO = mAllowOverride; - mAllowOverride = (!isRegion()) || LLEstateInfoModel::instance().getAllowEnvironmentOverride(); + //mAllowOverride = (!isRegion()) || LLEstateInfoModel::instance().getAllowEnvironmentOverride(); + mAllowOverride = (isRegion() && LLEstateInfoModel::instance().getAllowEnvironmentOverride()) || pRegion->getAllowEnvironmentOverride(); if (oldAO != mAllowOverride) refresh(); } |
