summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2010-10-04 17:56:09 -0400
committerNyx (Neal Orman) <nyx@lindenlab.com>2010-10-04 17:56:09 -0400
commit7be98bc20f53d6c418e01842da89c62c4002991d (patch)
treee524a24115eb7928ce26fa525c23abe0b268beee
parent478e0927c87338e02e75d3791f51ad2b4e7b8c74 (diff)
parent4fd10e42383aba2eb9e68ff837c8eacb9cee3e83 (diff)
Automated merge with ssh://hg.lindenlab.com/davep/viewer-mesh/
-rw-r--r--indra/newview/llfloatermodelpreview.cpp11
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;
}