diff options
author | Leslie Linden <leslie@lindenlab.com> | 2012-01-30 15:54:39 -0800 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2012-01-30 15:54:39 -0800 |
commit | fd56967dea7e4c53080a1ef89cc550492baf3fc8 (patch) | |
tree | 2a7a7993a550afbd7e92975cc53d633e41404583 /indra/newview/llfloatermodelpreview.cpp | |
parent | c4084c71386e34f6c28d4c10199eaf1155a2855b (diff) | |
parent | 56973912198ba3410d1ab32d1a8a63a1c8c3348e (diff) |
Merge with latest
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 9122e5a8f5..7448f2bb2a 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -4525,7 +4525,17 @@ void LLModelPreview::updateStatusMessages() } } - if (mFMP->childGetValue("physics_lod_combo").asString() == "From file") + + LLCtrlSelectionInterface* iface = fmp->childGetSelectionInterface("physics_lod_combo"); + S32 which_mode = 0; + S32 file_mode = 1; + if (iface) + { + which_mode = iface->getFirstSelectedIndex(); + file_mode = iface->getItemCount() - 1; + } + + if (which_mode == file_mode) { mFMP->childEnable("physics_file"); mFMP->childEnable("physics_browse"); |