Fix warnings about missing UI elements:

LLView::getChild: Making dummy class LLComboBox named "preview_lod_combo2" in Model Preview
LLView::getChild: Making dummy class LLComboBox named "preview_lod_combo3" in Model Preview
Ansariel 2017-06-16 03:04:55 +02:00
parent aca4f52dc8
commit 0eb66d7ef7
1 changed files with 7 additions and 5 deletions

View File

@ -4417,11 +4417,13 @@ void LLModelPreview::setPreviewLOD(S32 lod)
combo_box->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
mFMP->childSetValue("lod_file_" + lod_name[mPreviewLOD], mLODFile[mPreviewLOD]);
LLComboBox* combo_box2 = mFMP->getChild<LLComboBox>("preview_lod_combo2");
combo_box2->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
LLComboBox* combo_box3 = mFMP->getChild<LLComboBox>("preview_lod_combo3");
combo_box3->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
// <FS:Ansariel> Doesn't exist as of 16-06-2017
//LLComboBox* combo_box2 = mFMP->getChild<LLComboBox>("preview_lod_combo2");
//combo_box2->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
//
//LLComboBox* combo_box3 = mFMP->getChild<LLComboBox>("preview_lod_combo3");
//combo_box3->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
// </FS:Ansariel>
LLColor4 highlight_color = LLUIColorTable::instance().getColor("MeshImportTableHighlightColor");
LLColor4 normal_color = LLUIColorTable::instance().getColor("MeshImportTableNormalColor");