Fix find child during draw in texture picker
parent
7e82c1de52
commit
0a420e7d9a
|
|
@ -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 );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -437,6 +437,7 @@ protected:
|
|||
LLButton* mPipetteBtn;
|
||||
LLButton* mSelectBtn;
|
||||
LLButton* mCancelBtn;
|
||||
LLView* mPreviewWidget = nullptr;
|
||||
|
||||
private:
|
||||
bool mCanApply;
|
||||
|
|
|
|||
Loading…
Reference in New Issue