From 37dcb67d4204beb79c6eae9f38ffecd0d0d49f6f Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 20 Aug 2024 13:54:11 +0300 Subject: viewer#2338 Don't allow pasting into library from My Environments --- indra/newview/llfloatermyenvironment.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/llfloatermyenvironment.cpp b/indra/newview/llfloatermyenvironment.cpp index df4526e69d..891e16a8ef 100644 --- a/indra/newview/llfloatermyenvironment.cpp +++ b/indra/newview/llfloatermyenvironment.cpp @@ -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 ids; LLClipboard::instance().pasteFromClipboard(ids); -- cgit v1.2.3