viewer#2338 Don't allow pasting into library from My Environments

master
Andrey Kleshchev 2024-08-20 13:54:11 +03:00 committed by Andrey Kleshchev
parent ed6732eda8
commit 37dcb67d42
1 changed files with 2 additions and 0 deletions

View File

@ -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);