diff options
| author | prep <none@none> | 2012-06-01 16:02:12 -0400 |
|---|---|---|
| committer | prep <none@none> | 2012-06-01 16:02:12 -0400 |
| commit | bf8d3e1d304007cbd2a723808193e172b3e56c8a (patch) | |
| tree | f7bc68ec2975e7675d30dc0f99ce3720b5c265f6 /indra/newview/llfloaterpathfindingcharacters.cpp | |
| parent | a8ff37b95609148c60ddda9acfca65b2b89d6b9d (diff) | |
Migrated restoration of physics capsule into pathing character
Diffstat (limited to 'indra/newview/llfloaterpathfindingcharacters.cpp')
| -rw-r--r-- | indra/newview/llfloaterpathfindingcharacters.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpathfindingcharacters.cpp b/indra/newview/llfloaterpathfindingcharacters.cpp index 8915683b6d..0dbc2a303a 100644 --- a/indra/newview/llfloaterpathfindingcharacters.cpp +++ b/indra/newview/llfloaterpathfindingcharacters.cpp @@ -57,8 +57,11 @@ void LLFloaterPathfindingCharacters::openCharactersViewer() { LLFloaterReg::toggleInstanceOrBringToFront("pathfinding_characters"); } + void LLFloaterPathfindingCharacters::onClose(bool pIsAppQuitting) { + unhideAnyCharacters(); + LLFloaterPathfindingObjects::onClose( pIsAppQuitting ); } LLFloaterPathfindingCharacters::LLFloaterPathfindingCharacters(const LLSD& pSeed) @@ -246,3 +249,20 @@ void LLFloaterPathfindingCharacters::updateStateOnEditFields() LLFloaterPathfindingObjects::updateStateOnEditFields(); } + + +void LLFloaterPathfindingCharacters::unhideAnyCharacters( ) +{ + std::vector<LLScrollListItem*> selectedItems = mObjectsScrollList->getAllSelected(); + int numSelectedItems = selectedItems.size(); + uuid_vec_t selectedUUIDs; + if (numSelectedItems > 0) + { + for (std::vector<LLScrollListItem*>::const_iterator itemIter = selectedItems.begin(); + itemIter != selectedItems.end(); ++itemIter) + { + const LLScrollListItem *listItem = *itemIter; + gPipeline.restoreHiddenObject( listItem->getUUID() ); + } + } +} |
