viewer#2338 Don't allow pasting into library from My Environments
parent
ed6732eda8
commit
37dcb67d42
|
|
@ -335,6 +335,8 @@ bool LLFloaterMyEnvironment::canAction(const std::string &context)
|
|||
{
|
||||
if (!LLClipboard::instance().hasContents())
|
||||
return false;
|
||||
if (gInventory.isObjectDescendentOf(selected.front(), gInventory.getLibraryRootFolderID()))
|
||||
return false;
|
||||
|
||||
std::vector<LLUUID> ids;
|
||||
LLClipboard::instance().pasteFromClipboard(ids);
|
||||
|
|
|
|||
Loading…
Reference in New Issue