summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterfixedenvironment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterfixedenvironment.cpp')
-rw-r--r--indra/newview/llfloaterfixedenvironment.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/indra/newview/llfloaterfixedenvironment.cpp b/indra/newview/llfloaterfixedenvironment.cpp
index b9ea044a06..71d3ef6405 100644
--- a/indra/newview/llfloaterfixedenvironment.cpp
+++ b/indra/newview/llfloaterfixedenvironment.cpp
@@ -571,19 +571,7 @@ bool LLFloaterFixedEnvironment::canApplyRegion() const
bool LLFloaterFixedEnvironment::canApplyParcel() const
{
- LLParcelSelectionHandle handle(LLViewerParcelMgr::instance().getParcelSelection());
- LLParcel *parcel(nullptr);
-
- if (handle)
- parcel = handle->getParcel();
- if (!parcel)
- parcel = LLViewerParcelMgr::instance().getAgentParcel();
-
- if (!parcel)
- return false;
-
- return parcel->allowModifyBy(gAgent.getID(), gAgent.getGroupID()) &&
- LLEnvironment::instance().isExtendedEnvironmentEnabled();
+ return LLEnvironment::instance().canAgentUpdateParcelEnvironment();
}
//=========================================================================