summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-01-11 23:56:41 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-01-11 23:56:41 +0200
commit3e1afc3c917e655e8fd91a3b4b369c95a44ad981 (patch)
treefa07c05d4c1ae5f01436fb777a99fe270b97919f /indra
parent33290ef1bb74dda9afae14030cc7c117fcbd589f (diff)
SL-18947 No modify materials can lock material floater
Not supposed to happen, yet somehow did
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llmaterialeditor.cpp11
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;
}