summaryrefslogtreecommitdiff
path: root/indra/newview/llmaterialeditor.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-01-11 16:20:35 -0600
committerDave Parks <davep@lindenlab.com>2023-01-11 16:20:35 -0600
commitccedb5a6de62b339255898abc9b9faf0d2e4e132 (patch)
treec19450a468d34ef97b221ddca10dc39c86aca431 /indra/newview/llmaterialeditor.cpp
parentb9a4d81d5140b34199a6582b1189473b6a2e72fb (diff)
parent3e1afc3c917e655e8fd91a3b4b369c95a44ad981 (diff)
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-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;
}