diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-09-01 17:36:00 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-09-01 17:36:00 -0700 |
commit | 05c8ef3f3c002e71805bb04e9eddc3280630fca1 (patch) | |
tree | 17408d8f3587e35b4e244a41e23499d6f2542112 /indra/newview/llmaterialeditor.cpp | |
parent | a44959c00a8ec4675d40dcd81e217f905f948735 (diff) |
SL-20167: Grey out the clipboard when copying the material to clipboard is not allowed
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r-- | indra/newview/llmaterialeditor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 54d85c87ac..8f4e0658f6 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -1947,6 +1947,14 @@ bool LLMaterialEditor::canSaveObjectsMaterial() return can_use_objects_material(func, std::vector({PERM_COPY, PERM_MODIFY}), permissions, item_out); } +bool LLMaterialEditor::canClipboardObjectsMaterial() +{ + LLSelectedTEGetMatData func(true); + LLPermissions permissions; + LLViewerInventoryItem* item_out; + return can_use_objects_material(func, std::vector({PERM_COPY, PERM_MODIFY, PERM_TRANSFER}), permissions, item_out); +} + void LLMaterialEditor::saveObjectsMaterialAs() { LLSelectedTEGetMatData func(true); |