// <FS:Ansariel> FIRE-13838 / VWR-29517: Text and link from other tools is presented in Land tool from Build floater

Ansariel 2014-11-24 14:03:00 +01:00
parent 36f6e3b25a
commit f282c4d71d
1 changed files with 10 additions and 3 deletions

View File

@ -674,9 +674,16 @@ void LLFloaterTools::refresh()
getChild<LLTextBox>("selection_count")->setText(selection_info.str());
bool have_selection = !LLSelectMgr::getInstance()->getSelection()->isEmpty();
childSetVisible("selection_count", have_selection);
childSetVisible("remaining_capacity", have_selection);
childSetVisible("selection_empty", !have_selection);
// <FS:Ansariel> FIRE-13838 / VWR-29517: Text and link from other tools is presented in Land tool from Build floater
//childSetVisible("selection_count", have_selection);
//childSetVisible("remaining_capacity", have_selection);
//childSetVisible("selection_empty", !have_selection);
LLTool *tool = LLToolMgr::getInstance()->getCurrentTool();
bool land_visible = (tool == LLToolBrushLand::getInstance() || tool == LLToolSelectLand::getInstance() );
childSetVisible("selection_count", !land_visible && have_selection);
childSetVisible("remaining_capacity", !land_visible && have_selection);
childSetVisible("selection_empty", !land_visible && !have_selection);
// </FS:Ansariel>
}
// <FS> disable the object and prim counts if nothing selected