Skip to content

Commit

Permalink
make box selection consistent with single/multi selection
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 23, 2016
1 parent ca3a243 commit d1b3cbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gui/CommandView.cpp
Expand Up @@ -2281,6 +2281,12 @@ static void selectionCallback(void * ud, SoEventCallback * cb)
App::Document* doc = App::GetApplication().getActiveDocument();
if (doc) {
cb->setHandled();

const SoEvent* ev = cb->getEvent();
if (ev && !ev->wasCtrlDown()) {
Gui::Selection().clearSelection(doc->getName());
}

std::vector<App::GeoFeature*> geom = doc->getObjectsOfType<App::GeoFeature>();
for (std::vector<App::GeoFeature*>::iterator it = geom.begin(); it != geom.end(); ++it) {
Gui::ViewProvider* vp = Application::Instance->getViewProvider(*it);
Expand Down

0 comments on commit d1b3cbe

Please sign in to comment.