Skip to content

Commit

Permalink
2084: Fix hiding layers. (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
kduske committed Mar 1, 2018
1 parent cc58f36 commit bc9cb2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/View/MapDocument.cpp
Expand Up @@ -803,7 +803,7 @@ namespace TrenchBroom {
Model::CollectTransitivelyUnselectedNodesVisitor collectUnselected;
Model::Node::recurse(std::begin(layers), std::end(layers), collectUnselected);

Model::CollectTransitivelySelectedNodesVisitor collectSelected;
Model::CollectSelectedNodesVisitor collectSelected;
Model::Node::recurse(std::begin(layers), std::end(layers), collectSelected);

Transaction transaction(this, "Isolate Objects");
Expand All @@ -812,12 +812,12 @@ namespace TrenchBroom {
}

void MapDocument::hide(const Model::NodeList nodes) {
Model::CollectTransitivelySelectedNodesVisitor collect;
Model::CollectSelectedNodesVisitor collect;
Model::Node::acceptAndRecurse(std::begin(nodes), std::end(nodes), collect);

const Transaction transaction(this, "Hide Objects");
deselect(collect.nodes());
submitAndStore(SetVisibilityCommand::hide(collect.nodes()));
submitAndStore(SetVisibilityCommand::hide(nodes));
}

void MapDocument::hideSelection() {
Expand Down

0 comments on commit bc9cb2e

Please sign in to comment.