diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-10-04 17:56:09 -0400 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-10-04 17:56:09 -0400 |
commit | 7be98bc20f53d6c418e01842da89c62c4002991d (patch) | |
tree | e524a24115eb7928ce26fa525c23abe0b268beee | |
parent | 478e0927c87338e02e75d3791f51ad2b4e7b8c74 (diff) | |
parent | 4fd10e42383aba2eb9e68ff837c8eacb9cee3e83 (diff) |
Automated merge with ssh://hg.lindenlab.com/davep/viewer-mesh/
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 1336043b7f..d89d3e5c0a 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -2211,9 +2211,16 @@ void LLModelPreview::loadModel(std::string filename, S32 lod) mModelLoader = NULL; } - if (filename.empty() && mBaseModel.empty()) + if (filename.empty()) { - mFMP->closeFloater(false); + if (mBaseModel.empty()) + { + // this is the initial file picking. Close the whole floater + // if we don't have a base model to show for high LOD. + mFMP->closeFloater(false); + } + + mFMP->mLoading = false; return; } |