diff options
| author | Todd Stinson <stinson@lindenlab.com> | 2012-06-11 13:52:19 -0700 | 
|---|---|---|
| committer | Todd Stinson <stinson@lindenlab.com> | 2012-06-11 13:52:19 -0700 | 
| commit | c352483f62540d67e6ff5704d272c0b2f0b08222 (patch) | |
| tree | 34e499a19f1da66ca6375bc3bfc901f848666df2 | |
| parent | 9cac312f57391792e9fce380c2c38ae4060ae1d7 (diff) | |
PATH-704: Enforcing permanency only for static objects on neighboring regions.
| -rw-r--r-- | indra/newview/lltoolbrush.cpp | 12 | ||||
| -rw-r--r-- | indra/newview/llviewerobject.cpp | 2 | 
2 files changed, 1 insertions, 13 deletions
| diff --git a/indra/newview/lltoolbrush.cpp b/indra/newview/lltoolbrush.cpp index a963ef2ea6..8c5b534d63 100644 --- a/indra/newview/lltoolbrush.cpp +++ b/indra/newview/lltoolbrush.cpp @@ -247,12 +247,6 @@ void LLToolBrushLand::modifyLandInSelectionGlobal()  		}  	} -	if (!gAgent.isGodlike() && !gSavedSettings.getBOOL("PathfindingDisablePermanentObjects") && !LLPathfindingManager::getInstance()->isAllowAlterPermanent()) -	{ -		alertNoTerraformWhileFrozen(); -		return; -	} -  	for(region_list_t::iterator iter = mLastAffectedRegions.begin();  		iter != mLastAffectedRegions.end(); ++iter)  	{ @@ -389,12 +383,6 @@ BOOL LLToolBrushLand::handleMouseDown(S32 x, S32 y, MASK mask)  			return TRUE;  		} -		if (!gAgent.isGodlike() && !gSavedSettings.getBOOL("PathfindingDisablePermanentObjects") && !LLPathfindingManager::getInstance()->isAllowAlterPermanent()) -		{ -			alertNoTerraformWhileFrozen(); -			return TRUE; -		} -  		LLVector3 pos_region = region_position.getPositionRegion();  		U32 grids = regionp->getLand().mGridsPerEdge;  		S32 i = llclamp( (S32)pos_region.mV[VX], 0, (S32)grids ); diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index bfde167f18..2c4392ad33 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -5304,7 +5304,7 @@ void LLViewerObject::markForUpdate(BOOL priority)  bool LLViewerObject::isPermanentEnforced() const  { -	return flagObjectPermanent() && !LLPathfindingManager::getInstance()->isAllowAlterPermanent() && !gAgent.isGodlike(); +	return flagObjectPermanent() && (mRegionp != gAgent.getRegion()) && !gAgent.isGodlike();  }  bool LLViewerObject::getIncludeInSearch() const | 
