diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-12-07 21:18:42 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-12-07 21:21:03 +0200 |
commit | 76c6f3f002693459b77669df39d51fb4e456650d (patch) | |
tree | d28606b7fb137ead742373b94ba6f7e038c444c0 /indra/newview/llmaterialeditor.cpp | |
parent | e98091e29859ee6a784ee6920048837f2b4536c2 (diff) |
SL-18741 Don't allow bulk upload without caps
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r-- | indra/newview/llmaterialeditor.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 903ca60350..2e57c35326 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -1559,6 +1559,12 @@ void LLMaterialEditor::refreshFromInventory(const LLUUID& new_item_id) void LLMaterialEditor::onClickSaveAs() { + if (!LLMaterialEditor::capabilitiesAvailable()) + { + LLNotificationsUtil::add("MissingMaterialCaps"); + return; + } + if (!can_afford_transaction(mExpectedUploadCost)) { LLSD args; @@ -1709,7 +1715,7 @@ static void pack_textures( void LLMaterialEditor::uploadMaterialFromFile(const std::string& filename, S32 index) { - if (index < 0) + if (index < 0 || !LLMaterialEditor::capabilitiesAvailable()) { return; } |