summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-09-21 15:01:15 -0400
committerprep <prep@lindenlab.com>2011-09-21 15:01:15 -0400
commit812b6c60edbdae57cbe77b9c60c74a4bcbaf24ca (patch)
treef2e02df342d1ad74e548643e06fe40ba0927de1d
parentaeec2661071ff14c3a9526a24a629443264a635b (diff)
Fix for sh-2467
-rw-r--r--indra/newview/llfloatermodelpreview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 75e775072b..b31fa620fe 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -5066,6 +5066,8 @@ BOOL LLModelPreview::render()
if (!mModel[mPreviewLOD].empty())
{
+ mFMP->childEnable("reset_btn");
+
bool regen = mVertexBuffer[mPreviewLOD].empty();
if (!regen)
{
@@ -5563,6 +5565,7 @@ void LLFloaterModelPreview::onReset(void* user_data)
assert_main_thread();
LLFloaterModelPreview* fmp = (LLFloaterModelPreview*) user_data;
+ fmp->childDisable("reset_btn");
LLModelPreview* mp = fmp->mModelPreview;
std::string filename = mp->mLODFile[3];