diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-10-18 20:12:38 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-10-18 20:13:08 +0300 |
commit | 7be33594eaab6b9c0da863778bbdacdb8cbe7838 (patch) | |
tree | f4e7273ba497092717738e301d56052b59718f16 /indra/newview/llmaterialeditor.h | |
parent | f20c47a5968c82b1627139537e07a2ae67f64b24 (diff) |
SL-18008 Updated Save and Edit PBR buttons
Diffstat (limited to 'indra/newview/llmaterialeditor.h')
-rw-r--r-- | indra/newview/llmaterialeditor.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/llmaterialeditor.h b/indra/newview/llmaterialeditor.h index 9bc6be4b92..8945e113a4 100644 --- a/indra/newview/llmaterialeditor.h +++ b/indra/newview/llmaterialeditor.h @@ -98,13 +98,14 @@ public: void getGLTFMaterial(LLGLTFMaterial* mat); - void setFromGLTFMaterial(LLGLTFMaterial* mat); - void loadAsset() override; // @index if -1 and file contains more than one material, // will promt to select specific one static void loadMaterialFromFile(const std::string& filename, S32 index = -1); - static void loadLiveMaterial(LLGLTFMaterial * material, bool make_copy); + + static void LLMaterialEditor::loadLiveMaterial(LLUUID &asset_id); + + static void LLMaterialEditor::loadFromGLTFMaterial(LLUUID &asset_id); static void onLoadComplete(const LLUUID& asset_uuid, LLAssetType::EType type, void* user_data, S32 status, LLExtStat ext_status); @@ -220,10 +221,9 @@ public: void modifyMaterialCoro(std::string cap_url, LLSD overrides); private: + void setFromGLTFMaterial(LLGLTFMaterial* mat); + void loadMaterial(const tinygltf::Model &model, const std::string &filename_lc, S32 index); - // if make_copy is set, will make a copy for saving, - // otherwise will edit existing material - void loadMaterial(LLGLTFMaterial * material, bool make_copy); friend class LLMaterialFilePicker; |