diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-07-06 01:03:00 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-07-06 18:39:50 +0300 |
commit | cfddc1b539a69155bfae1f7fa672ca202a772505 (patch) | |
tree | 3e9f2ff741552927773b15102e16827714f581ab /indra/newview/llmaterialeditor.h | |
parent | f49579ad25128b643f62115d9df249788d77d435 (diff) |
SL-17640 'Save As' should create a new item
Also fixed floater not using inventory item's name, some of the permissions
Diffstat (limited to 'indra/newview/llmaterialeditor.h')
-rw-r--r-- | indra/newview/llmaterialeditor.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llmaterialeditor.h b/indra/newview/llmaterialeditor.h index a632d5c823..dd0a17976c 100644 --- a/indra/newview/llmaterialeditor.h +++ b/indra/newview/llmaterialeditor.h @@ -81,12 +81,15 @@ public: bool decodeAsset(const std::vector<char>& buffer); - bool saveIfNeeded(LLInventoryItem* copyitem = nullptr, bool sync = true); + bool saveIfNeeded(); + static bool saveToInventoryItem(const std::string &buffer, const LLUUID &item_id, const LLUUID &task_id); static void finishInventoryUpload(LLUUID itemId, LLUUID newAssetId, LLUUID newItemId); static void finishTaskUpload(LLUUID itemId, LLUUID newAssetId, LLUUID taskId); + static void finishSaveAs(const LLUUID &oldItemId, const LLUUID &newItemId, const std::string &buffer); + void refreshFromInventory(const LLUUID& new_item_id = LLUUID::null); void onClickSaveAs(); @@ -143,6 +146,8 @@ public: void setDoubleSided(bool double_sided); void setHasUnsavedChanges(bool value); + void setCanSaveAs(BOOL value); + void setCanSave(BOOL value); void onCommitAlbedoTexture(LLUICtrl* ctrl, const LLSD& data); void onCommitMetallicTexture(LLUICtrl* ctrl, const LLSD& data); |