diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/llfloatertools.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index c9edf98..05dd70b 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -383,8 +383,7 @@ LLFloaterTools::LLFloaterTools() | |||
383 | mPanelLandInfo(NULL), | 383 | mPanelLandInfo(NULL), |
384 | 384 | ||
385 | mTabLand(NULL), | 385 | mTabLand(NULL), |
386 | mDirty(TRUE), | 386 | mDirty(TRUE) |
387 | mLastTool(gToolNull) | ||
388 | { | 387 | { |
389 | mAutoFocus = FALSE; | 388 | mAutoFocus = FALSE; |
390 | LLCallbackMap::map_t factory_map; | 389 | LLCallbackMap::map_t factory_map; |
@@ -949,21 +948,13 @@ void LLFloaterTools::onClickGridOptions(void* data) | |||
949 | //floaterp->addDependentFloater(LLFloaterBuildOptions::getInstance(), FALSE); | 948 | //floaterp->addDependentFloater(LLFloaterBuildOptions::getInstance(), FALSE); |
950 | } | 949 | } |
951 | 950 | ||
952 | void LLFloaterTools::saveLastTool() | ||
953 | { | ||
954 | mLastTool = gToolMgr->getCurrentTool( MASK_NONE ); | ||
955 | } | ||
956 | |||
957 | void LLFloaterTools::setEditTool(void* tool_pointer) | 951 | void LLFloaterTools::setEditTool(void* tool_pointer) |
958 | { | 952 | { |
959 | select_tool(tool_pointer); | 953 | select_tool(tool_pointer); |
960 | if(gFloaterTools && tool_pointer != gToolNull) | ||
961 | { | ||
962 | gFloaterTools->saveLastTool(); | ||
963 | } | ||
964 | } | 954 | } |
965 | 955 | ||
966 | void LLFloaterTools::onFocusReceived() | 956 | void LLFloaterTools::onFocusReceived() |
967 | { | 957 | { |
968 | select_tool(mLastTool); | 958 | gCurrentToolset = gBasicToolset; |
959 | gCurrentToolset->selectTool(gCurrentToolset->getSelectedTool()); | ||
969 | } \ No newline at end of file | 960 | } \ No newline at end of file |