summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-12-08 10:34:28 -0500
committerLoren Shih <seraph@lindenlab.com>2010-12-08 10:34:28 -0500
commit9d165362201f38f8722227ad72f23bba28125119 (patch)
treeef30eaff336831f7d21b4e0b49fda11644368ebc /indra/newview
parent6a59861bde42e1b8ddc8c19a0b37a2b0a7011f7a (diff)
Automated merge from mesh-development
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp14
-rw-r--r--indra/newview/skins/default/xui/en/floater_model_preview.xml14
2 files changed, 15 insertions, 13 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index b82e9dd62f..07af8382a3 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -102,11 +102,12 @@ const S32 PREVIEW_RESIZE_HANDLE_SIZE = S32(RESIZE_HANDLE_WIDTH * OO_SQRT2) + PRE
const S32 PREVIEW_HPAD = PREVIEW_RESIZE_HANDLE_SIZE;
const S32 PREF_BUTTON_HEIGHT = 16 + 7 + 16;
const S32 PREVIEW_TEXTURE_HEIGHT = 300;
+const S32 NUM_LOD = 4;
void drawBoxOutline(const LLVector3& pos, const LLVector3& size);
-std::string lod_name[] =
+std::string lod_name[NUM_LOD+1] =
{
"lowest",
"low",
@@ -115,7 +116,7 @@ std::string lod_name[] =
"I went off the end of the lod_name array. Me so smart."
};
-std::string lod_triangles_name[] =
+std::string lod_triangles_name[NUM_LOD+1] =
{
"lowest_triangles",
"low_triangles",
@@ -124,7 +125,7 @@ std::string lod_triangles_name[] =
"I went off the end of the lod_triangles_name array. Me so smart."
};
-std::string lod_vertices_name[] =
+std::string lod_vertices_name[NUM_LOD+1] =
{
"lowest_vertices",
"low_vertices",
@@ -133,7 +134,7 @@ std::string lod_vertices_name[] =
"I went off the end of the lod_vertices_name array. Me so smart."
};
-std::string lod_status_name[] =
+std::string lod_status_name[NUM_LOD+1] =
{
"lowest_status",
"low_status",
@@ -142,7 +143,7 @@ std::string lod_status_name[] =
"I went off the end of the lod_status_name array. Me so smart."
};
-std::string lod_label_name[] =
+std::string lod_label_name[NUM_LOD+1] =
{
"lowest_label",
"low_label",
@@ -420,6 +421,7 @@ void LLFloaterModelPreview::onPreviewLODCommit(LLUICtrl* ctrl, void* userdata)
{
which_mode = iface->getFirstSelectedIndex();
}
+ which_mode = (NUM_LOD-1)-which_mode; // combo box list of lods is in reverse order
fp->mModelPreview->setPreviewLOD(which_mode);
}
@@ -3752,7 +3754,7 @@ void LLModelPreview::setPreviewLOD(S32 lod)
mPreviewLOD = lod;
LLComboBox* combo_box = mFMP->getChild<LLComboBox>("preview_lod_combo");
- combo_box->setCurrentByIndex(mPreviewLOD);
+ combo_box->setCurrentByIndex((NUM_LOD-1)-mPreviewLOD); // combo box list of lods is in reverse order
mFMP->childSetTextArg("lod_table_footer", "[DETAIL]", mFMP->getString(lod_name[mPreviewLOD]));
mFMP->childSetText("lod_file", mLODFile[mPreviewLOD]);
diff --git a/indra/newview/skins/default/xui/en/floater_model_preview.xml b/indra/newview/skins/default/xui/en/floater_model_preview.xml
index f1b6024ff7..c17c52bb09 100644
--- a/indra/newview/skins/default/xui/en/floater_model_preview.xml
+++ b/indra/newview/skins/default/xui/en/floater_model_preview.xml
@@ -42,20 +42,20 @@
<text bottom_delta="20" left="15" follows="left|bottom" height="15" name="lod_label">
Level of Detail:
</text>
- <combo_box bottom_delta="20" follows="left|bottom" height="18"
+ <combo_box bottom_delta="20" follows="left|bottom" list_position="below" height="18"
name="preview_lod_combo" width="90" tool_tip="LOD to view in preview render">
+ <combo_item name="high">
+ High
+ </combo_item>
+ <combo_item name="medium">
+ Medium
+ </combo_item>
<combo_item name="lowest">
Lowest
</combo_item>
<combo_item name="low">
Low
</combo_item>
- <combo_item name="medium">
- Medium
- </combo_item>
- <combo_item name="high">
- High
- </combo_item>
</combo_box>
<check_box bottom="450" left="125" follows="left|bottom" label="Show Edges" name="show edges" width="120" height="16" tool_tip="Render wireframe in preview window"/>