summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-12-08 11:23:47 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-12-08 11:23:47 +0200
commitb78fe654d59c28315645a2e7189cb75e7b1431ac (patch)
tree78fa7cf6657c580ec5af25a94f99c99398ff426c
parentdac539cd3ef465ffe7745f52ff2b4edb325b369e (diff)
MAINT-5925 FIXED Viewer allows you to locally retexture anyones content including attachments.
-rwxr-xr-xindra/newview/llselectmgr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index 7620046ee3..4f63df1ea2 100755
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -1628,7 +1628,11 @@ void LLSelectMgr::selectionSetImage(const LLUUID& imageid)
f(LLViewerInventoryItem* item, const LLUUID& id) : mItem(item), mImageID(id) {}
bool apply(LLViewerObject* objectp, S32 te)
{
- if (mItem)
+ if(objectp && !objectp->permModify())
+ {
+ return false;
+ }
+ if (mItem)
{
if (te == -1) // all faces
{