Merged in andreykproductengine/maint-eep (pull request #121)
SL-9755 EEP Cannot apply a new Sky setting to the parcel. Approved-by: Maxim Nikolenko <maximnproductengine@lindenlab.com>meow-7.2.2
commit
59a4a215de
|
|
@ -1281,13 +1281,7 @@ void LLFloaterEditExtDayCycle::doApplyEnvironment(const std::string &where, cons
|
|||
}
|
||||
else if (where == ACTION_APPLY_PARCEL)
|
||||
{
|
||||
LLParcelSelectionHandle handle(LLViewerParcelMgr::instance().getParcelSelection());
|
||||
LLParcel *parcel(nullptr);
|
||||
|
||||
if (handle)
|
||||
parcel = handle->getParcel();
|
||||
if (!parcel || (parcel->getLocalID() == INVALID_PARCEL_ID))
|
||||
parcel = LLViewerParcelMgr::instance().getAgentParcel();
|
||||
LLParcel *parcel(LLViewerParcelMgr::instance().getAgentOrSelectedParcel());
|
||||
|
||||
if ((!parcel) || (parcel->getLocalID() == INVALID_PARCEL_ID))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -428,13 +428,7 @@ void LLFloaterFixedEnvironment::doApplyEnvironment(const std::string &where)
|
|||
}
|
||||
else if (where == ACTION_APPLY_PARCEL)
|
||||
{
|
||||
LLParcelSelectionHandle handle(LLViewerParcelMgr::instance().getParcelSelection());
|
||||
LLParcel *parcel(nullptr);
|
||||
|
||||
if (handle)
|
||||
parcel = handle->getParcel();
|
||||
if (!parcel)
|
||||
parcel = LLViewerParcelMgr::instance().getAgentParcel();
|
||||
LLParcel *parcel(LLViewerParcelMgr::instance().getAgentOrSelectedParcel());
|
||||
|
||||
if ((!parcel) || (parcel->getLocalID() == INVALID_PARCEL_ID))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue