summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-23 16:18:25 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-23 16:18:25 -0700
commit561e97989e79d51e31fb649d0f92c9f3d16e73a3 (patch)
treed8529287dfb976e7e625f0e5a83c68176144d0b1 /indra/newview
parent661f554886511a4062c91b0ce656bb0130937244 (diff)
parentefb0c752f084dca938b41e6ef14a583e79ef03a5 (diff)
Merge branch 'DRTVWR-559' of bitbucket.org:lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfilepicker.cpp2
-rw-r--r--indra/newview/llmaterialeditor.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llfilepicker.cpp b/indra/newview/llfilepicker.cpp
index 2809988ba0..3c5ac963f6 100644
--- a/indra/newview/llfilepicker.cpp
+++ b/indra/newview/llfilepicker.cpp
@@ -59,7 +59,7 @@ LLFilePicker LLFilePicker::sInstance;
#define XML_FILTER L"XML files (*.xml)\0*.xml\0"
#define SLOBJECT_FILTER L"Objects (*.slobject)\0*.slobject\0"
#define RAW_FILTER L"RAW files (*.raw)\0*.raw\0"
-#define MODEL_FILTER L"Model files (*.dae; *.gltf; *.glb)\0*.dae;*.gltf;*.glb\0"
+#define MODEL_FILTER L"Model files (*.dae)\0*.dae\0"
#define MATERIAL_FILTER L"GLTF Files (*.gltf; *.glb)\0*.gltf;*.glb\0"
#define SCRIPT_FILTER L"Script files (*.lsl)\0*.lsl\0"
#define DICTIONARY_FILTER L"Dictionary files (*.dic; *.xcu)\0*.dic;*.xcu\0"
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);
}
}