diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-07-25 15:51:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 15:51:34 +0300 |
commit | 6e7c6a3842c077b97b3d9fb04c818613efa06f6f (patch) | |
tree | c91d4184295feb92de63946b0f064074da53071e /indra/newview/lltexturectrl.cpp | |
parent | ca70244339291b2a06aab55e865339c534433372 (diff) | |
parent | 7bb62fff08942db95805de454b43d006ca47428b (diff) |
Merge pull request #2099 from RyeMutt/fix-findchild-stutter
Fix various sources of stutter from findChild during draw
Diffstat (limited to 'indra/newview/lltexturectrl.cpp')
-rw-r--r-- | indra/newview/lltexturectrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index e154777aef..35057a910a 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -558,6 +558,7 @@ bool LLFloaterTexturePicker::postBuild() mResolutionLabel = getChild<LLTextBox>("size_lbl"); mResolutionWarning = getChild<LLTextBox>("over_limit_lbl"); + mPreviewWidget = getChild<LLView>("preview_widget"); mDefaultBtn = getChild<LLButton>("Default"); mNoneBtn = getChild<LLButton>("None"); @@ -653,7 +654,6 @@ void LLFloaterTexturePicker::draw() bool valid_dims = updateImageStats(); // if we're inactive, gray out "apply immediate" checkbox - getChildView("show_folders_check")->setEnabled(mActive && mCanApplyImmediately && !mNoCopyTextureSelected); mSelectBtn->setEnabled(mActive && mCanApply && valid_dims); mPipetteBtn->setEnabled(mActive); mPipetteBtn->setValue(LLToolMgr::getInstance()->getCurrentTool() == LLToolPipette::getInstance()); @@ -731,7 +731,7 @@ void LLFloaterTexturePicker::draw() } // Border - LLRect border = getChildView("preview_widget")->getRect(); + LLRect border = mPreviewWidget->getRect(); gl_rect_2d( border, LLColor4::black, false ); |