summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-22 12:11:50 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2014-10-22 12:11:50 +0300
commit74cf2c804eb413237529666a992c85dd3d61a0ca (patch)
tree25e29ac7edabdb8c307ab535f92ac8312158779d /indra/newview/llfloatermodelpreview.cpp
parent54968b2470f0ca80d8edc329236b1c6164a3e2f9 (diff)
MAINT-4487 FIXED [loader mods] triangle limits from .slm are ignored when uploading the model the second time.
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rwxr-xr-xindra/newview/llfloatermodelpreview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 9d372766a8..1e1e96acef 100755
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -1733,7 +1733,12 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable
{
mModelLoader->mTrySLM = false;
}
-
+ else
+ {
+ //only try to load from slm if viewer is configured to do so and this is the
+ //initial model load (not an LoD or physics shape)
+ mModelLoader->mTrySLM = gSavedSettings.getBOOL("MeshImportUseSLM") && mUploadData.empty();
+ }
mModelLoader->start();
mFMP->childSetTextArg("status", "[STATUS]", mFMP->getString("status_reading_file"));