diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-11 23:56:41 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-11 23:56:41 +0200 |
commit | 3e1afc3c917e655e8fd91a3b4b369c95a44ad981 (patch) | |
tree | fa07c05d4c1ae5f01436fb777a99fe270b97919f /indra/newview/llmaterialeditor.cpp | |
parent | 33290ef1bb74dda9afae14030cc7c117fcbd589f (diff) |
SL-18947 No modify materials can lock material floater
Not supposed to happen, yet somehow did
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r-- | indra/newview/llmaterialeditor.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 2e57c35326..dbbd6edb7d 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -1324,7 +1324,16 @@ bool LLMaterialEditor::updateInventoryItem(const std::string &buffer, const LLUU // done callback LLMaterialEditor::finishInventoryUpload(itemId, newAssetId, newItemId); }, - nullptr // failure callback + [](LLUUID itemId, LLUUID taskId, LLSD response, std::string reason) + { + // failure callback + LLMaterialEditor* me = LLFloaterReg::findTypedInstance<LLMaterialEditor>("material_editor", LLSD(itemId)); + if (me) + { + me->setEnabled(true); + } + return true; + } ); url = agent_url; } |