Adding group owned check for enabling returnability of objects on parcels.

master
Andrew Meadows 2011-01-07 15:20:11 -08:00
commit cf64ecb41d
1 changed files with 3 additions and 2 deletions

View File

@ -1502,8 +1502,9 @@ const U32 ALLOW_RETURN_ENCROACHING_OBJECT = REGION_FLAGS_ALLOW_RETURN_ENCROACHIN
bool LLViewerRegion::objectIsReturnable(const LLVector3& pos, const LLBBox& bbox)
{
return mParcelOverlay
&& ( mParcelOverlay->isOwned(pos)
return (mParcelOverlay != NULL)
&& (mParcelOverlay->isOwnedSelf(pos)
|| mParcelOverlay->isOwnedGroup(pos)
|| ((mRegionFlags & ALLOW_RETURN_ENCROACHING_OBJECT)
&& mParcelOverlay->encroachesOwned(bbox)) );
}