diff options
Diffstat (limited to 'linden/indra/newview/llfloatertools.cpp')
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index fc72467..6744faf 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -84,7 +84,7 @@ | |||
84 | #include "llvograss.h" | 84 | #include "llvograss.h" |
85 | #include "llvotree.h" | 85 | #include "llvotree.h" |
86 | #include "lluictrlfactory.h" | 86 | #include "lluictrlfactory.h" |
87 | 87 | #include "qtoolalign.h" | |
88 | #include "hippoLimits.h" | 88 | #include "hippoLimits.h" |
89 | 89 | ||
90 | // Globals | 90 | // Globals |
@@ -273,6 +273,8 @@ BOOL LLFloaterTools::postBuild() | |||
273 | childSetCommitCallback("radio stretch",commit_select_tool,LLToolCompScale::getInstance()); | 273 | childSetCommitCallback("radio stretch",commit_select_tool,LLToolCompScale::getInstance()); |
274 | mRadioSelectFace = getChild<LLCheckBoxCtrl>("radio select face"); | 274 | mRadioSelectFace = getChild<LLCheckBoxCtrl>("radio select face"); |
275 | childSetCommitCallback("radio select face",commit_select_tool,LLToolFace::getInstance()); | 275 | childSetCommitCallback("radio select face",commit_select_tool,LLToolFace::getInstance()); |
276 | mRadioAlign = getChild<LLCheckBoxCtrl>("radio align"); | ||
277 | childSetCommitCallback("radio align",commit_select_tool,QToolAlign::getInstance()); | ||
276 | mCheckSelectIndividual = getChild<LLCheckBoxCtrl>("checkbox edit linked parts"); | 278 | mCheckSelectIndividual = getChild<LLCheckBoxCtrl>("checkbox edit linked parts"); |
277 | childSetValue("checkbox edit linked parts",(BOOL)gSavedSettings.getBOOL("EditLinkedParts")); | 279 | childSetValue("checkbox edit linked parts",(BOOL)gSavedSettings.getBOOL("EditLinkedParts")); |
278 | childSetCommitCallback("checkbox edit linked parts",commit_select_component,this); | 280 | childSetCommitCallback("checkbox edit linked parts",commit_select_component,this); |
@@ -698,6 +700,7 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask) | |||
698 | tool == LLToolCompScale::getInstance() || | 700 | tool == LLToolCompScale::getInstance() || |
699 | tool == LLToolFace::getInstance() || | 701 | tool == LLToolFace::getInstance() || |
700 | tool == LLToolIndividual::getInstance() || | 702 | tool == LLToolIndividual::getInstance() || |
703 | tool == QToolAlign::getInstance() || | ||
701 | tool == LLToolPipette::getInstance(); | 704 | tool == LLToolPipette::getInstance(); |
702 | 705 | ||
703 | mBtnEdit ->setToggleState( edit_visible ); | 706 | mBtnEdit ->setToggleState( edit_visible ); |
@@ -720,6 +723,7 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask) | |||
720 | mRadioPosition ->set( tool == LLToolCompTranslate::getInstance() ); | 723 | mRadioPosition ->set( tool == LLToolCompTranslate::getInstance() ); |
721 | mRadioRotate ->set( tool == LLToolCompRotate::getInstance() ); | 724 | mRadioRotate ->set( tool == LLToolCompRotate::getInstance() ); |
722 | mRadioStretch ->set( tool == LLToolCompScale::getInstance() ); | 725 | mRadioStretch ->set( tool == LLToolCompScale::getInstance() ); |
726 | mRadioAlign->set( tool == QToolAlign::getInstance() ); | ||
723 | 727 | ||
724 | if (mComboGridMode) | 728 | if (mComboGridMode) |
725 | { | 729 | { |
@@ -927,7 +931,7 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask) | |||
927 | childSetVisible("Strength:", land_visible); | 931 | childSetVisible("Strength:", land_visible); |
928 | } | 932 | } |
929 | 933 | ||
930 | if (gSavedSettings.getBOOL("EditLinkedParts")) | 934 | if (gSavedSettings.getBOOL("EditLinkedParts") && LLSelectMgr::getInstance()->getEditSelection()->getObjectCount() == 1) |
931 | { | 935 | { |
932 | childSetVisible("link_num", !land_visible); | 936 | childSetVisible("link_num", !land_visible); |
933 | } | 937 | } |