Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2084: Hiding layers does not work consistently #2087

Merged
merged 1 commit into from Mar 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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