Skip to content

Commit 37dcb67

Browse files
committed
viewer#2338 Don't allow pasting into library from My Environments
1 parent ed6732e commit 37dcb67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indra/newview/llfloatermyenvironment.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ bool LLFloaterMyEnvironment::canAction(const std::string &context)
335335
{
336336
if (!LLClipboard::instance().hasContents())
337337
return false;
338+
if (gInventory.isObjectDescendentOf(selected.front(), gInventory.getLibraryRootFolderID()))
339+
return false;
338340

339341
std::vector<LLUUID> ids;
340342
LLClipboard::instance().pasteFromClipboard(ids);

0 commit comments

Comments
 (0)