diff options
author | Andrew Meadows <andrew@lindenlab.com> | 2011-01-07 15:20:11 -0800 |
---|---|---|
committer | Andrew Meadows <andrew@lindenlab.com> | 2011-01-07 15:20:11 -0800 |
commit | cf64ecb41dbbdcdc3c512510c4a7ebd28c832314 (patch) | |
tree | 0b1afad4d3bea8ce86b285955b37e0223431e605 /indra/newview | |
parent | e040f16a4f2e50592a125a04185fd9f06ac49522 (diff) | |
parent | dd8e387d66bec042bde299b88bab81d465bf4df1 (diff) |
Adding group owned check for enabling returnability of objects on parcels.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewerregion.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index c73b5fdd40..43b26fe830 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -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)) ); } |