diff options
author | Dave Parks <davep@lindenlab.com> | 2022-06-23 18:06:55 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-06-23 18:06:55 -0500 |
commit | 6ce3df5514076baaf8b507dc5fda0658b992e296 (patch) | |
tree | c1b8ee51d9435aa126e1fb5cc0ec92869cf06f05 /indra/newview/llmaterialeditor.cpp | |
parent | beb763c4a0b657de40cd7c02734b70babfccc26b (diff) |
SL-17653 Flip imported GLTF textures, remove .dae and .glb/.gltf from file dialogs that don't support them
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
-rw-r--r-- | indra/newview/llmaterialeditor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 5a0c23d59b..8b4d3b832b 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -280,7 +280,7 @@ private: }; LLMaterialFilePicker::LLMaterialFilePicker(LLMaterialEditor* me) - : LLFilePickerThread(LLFilePicker::FFLOAD_MODEL) + : LLFilePickerThread(LLFilePicker::FFLOAD_MATERIAL) { mME = me; } @@ -325,6 +325,7 @@ static LLViewerFetchedTexture* get_texture(const std::string& folder, const tiny image->component <= 4) { LLPointer<LLImageRaw> rawImage = new LLImageRaw(&image->image[0], image->width, image->height, image->component); + rawImage->verticalFlip(); ret = LLViewerTextureManager::getFetchedTexture(rawImage, FTType::FTT_LOCAL_FILE, true); @@ -449,6 +450,8 @@ void LLMaterialFilePicker::loadMaterial(const std::string& filename) mME->setDoubleSided(material_in.doubleSided); mME->openFloater(); + + mME->applyToSelection(); } void LLMaterialEditor::importMaterial() @@ -484,5 +487,7 @@ void LLMaterialEditor::applyToSelection() vobjp->getTE(i)->setGLTFMaterial(mat); vobjp->updateTEMaterialTextures(i); } + + vobjp->markForUpdate(TRUE); } } |