When we don't have a parcel selected (About Land is closed), allow Script Limits refreshes to use our current parcel instead.
This commit is contained in:
@@ -884,6 +884,11 @@ BOOL LLPanelScriptLimitsRegionMemory::StartRequestChain()
|
||||
}
|
||||
LLParcel* parcel = instance->getCurrentSelectedParcel();
|
||||
LLViewerRegion* region = LLViewerParcelMgr::getInstance()->getSelectionRegion();
|
||||
if (!parcel) //Pretend we have the parcel we're on selected.
|
||||
{
|
||||
parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
region = gAgent.getRegion();
|
||||
}
|
||||
|
||||
LLUUID current_region_id = gAgent.getRegion()->getRegionID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user