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:
Lirusaito
2013-02-11 03:55:58 -05:00
parent 8a76b5d1d2
commit 2d0e3daef3

View File

@@ -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();