summaryrefslogtreecommitdiff
path: root/indra/newview/llmodelpreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmodelpreview.cpp')
-rw-r--r--indra/newview/llmodelpreview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index 21c6895a6c..6de88b318a 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -562,6 +562,7 @@ void LLModelPreview::rebuildUploadData()
LLModel* high_lod_model = instance.mLOD[LLModel::LOD_HIGH];
if (!high_lod_model)
{
+ LLFloaterModelPreview::addStringToLog("Model " + instance.mLabel + " has no High Lod (LOD3).", true);
setLoadState(LLModelLoader::ERROR_MATERIALS);
mFMP->childDisable("calculate_btn");
}
@@ -574,6 +575,7 @@ void LLModelPreview::rebuildUploadData()
llassert(instance.mLOD[i]);
if (instance.mLOD[i] && !instance.mLOD[i]->matchMaterialOrder(high_lod_model, refFaceCnt, modelFaceCnt))
{
+ LLFloaterModelPreview::addStringToLog("Model " + instance.mLabel + " has mismatching materials between lods." , true);
setLoadState(LLModelLoader::ERROR_MATERIALS);
mFMP->childDisable("calculate_btn");
}
@@ -593,7 +595,7 @@ void LLModelPreview::rebuildUploadData()
out << bind_rot;
LL_WARNS() << out.str() << LL_ENDL;
- LLFloaterModelPreview::addStringToLog(out, false);
+ LLFloaterModelPreview::addStringToLog(out, getLoadState() != LLModelLoader::WARNING_BIND_SHAPE_ORIENTATION);
setLoadState(LLModelLoader::WARNING_BIND_SHAPE_ORIENTATION);
}
}
@@ -626,7 +628,7 @@ void LLModelPreview::rebuildUploadData()
std::ostringstream out;
out << "Model " << mModel[lod][model_ind]->mLabel << " was not used - mismatching lod models.";
LL_INFOS() << out.str() << LL_ENDL;
- LLFloaterModelPreview::addStringToLog(out, false);
+ LLFloaterModelPreview::addStringToLog(out, true);
}
setLoadState(LLModelLoader::ERROR_MATERIALS);
mFMP->childDisable("calculate_btn");