Skip to content
Snippets Groups Projects
Commit 9e97c31e authored by NiranV's avatar NiranV
Browse files

Fixed: Selection Outlines option in tools window not properly changing visibility on mode switch.

parent a7948345
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,8 @@ BOOL LLFloaterTools::postBuild()
mCheckStretchTexture = getChild<LLCheckBoxCtrl>("checkbox stretch textures");
getChild<LLUICtrl>("checkbox stretch textures")->setValue((BOOL)gSavedSettings.getBOOL("ScaleStretchTextures"));
mComboGridMode = getChild<LLComboBox>("combobox grid mode");
//BD
mCheckSelectionOutlines = getChild<LLCheckBoxCtrl>("checkbox show selection outlines");
//
// Create Buttons
......@@ -334,6 +336,8 @@ LLFloaterTools::LLFloaterTools(const LLSD& key)
mCheckStretchUniform(NULL),
mCheckStretchTexture(NULL),
mCheckStretchUniformLabel(NULL),
//BD
mCheckSelectionOutlines(NULL),
mBtnRotateLeft(NULL),
mBtnRotateReset(NULL),
......@@ -759,6 +763,8 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)
if (mCheckStretchUniform) mCheckStretchUniform->setVisible( edit_visible );
if (mCheckStretchTexture) mCheckStretchTexture->setVisible( edit_visible );
if (mCheckStretchUniformLabel) mCheckStretchUniformLabel->setVisible( edit_visible );
//BD
if (mCheckSelectionOutlines) mCheckSelectionOutlines->setVisible(edit_visible);
// Create buttons
BOOL create_visible = (tool == LLToolCompCreate::getInstance());
......
......@@ -135,6 +135,8 @@ class LLFloaterTools
LLComboBox* mComboGridMode;
LLCheckBoxCtrl* mCheckStretchUniform;
LLCheckBoxCtrl* mCheckStretchTexture;
//BD
LLCheckBoxCtrl* mCheckSelectionOutlines;
// !HACK! Replacement of mCheckStretchUniform label because LLCheckBoxCtrl
// doesn't support word_wrap of its label. Need to fix truncation bug EXT-6658
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment