Merge
commit
7597e4ecfd
|
|
@ -1423,19 +1423,7 @@ bool LLFloaterEditExtDayCycle::canApplyRegion() const
|
|||
|
||||
bool LLFloaterEditExtDayCycle::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->allowTerraformBy(gAgent.getID()) &&
|
||||
LLEnvironment::instance().isExtendedEnvironmentEnabled();
|
||||
return LLEnvironment::instance().canAgentUpdateParcelEnvironment();
|
||||
}
|
||||
|
||||
void LLFloaterEditExtDayCycle::startPlay()
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
//=========================================================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue