Skip to content

Commit

Permalink
for point clouds set default selection style to bounding box
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 23, 2019
1 parent 9e93e62 commit 5cbf18b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Points/Gui/ViewProvider.cpp
Expand Up @@ -81,6 +81,9 @@ ViewProviderPoints::ViewProviderPoints()
if (pcHighlight->selectionMode.getValue() == Gui::SoFCSelection::SEL_OFF)
Selectable.setValue(false);

// BBOX
SelectionStyle.setValue(1);

pcPointsCoord = new SoCoordinate3();
pcPointsCoord->ref();
pcPointsNormal = new SoNormal();
Expand Down Expand Up @@ -108,6 +111,10 @@ void ViewProviderPoints::onChanged(const App::Property* prop)
if (prop == &PointSize) {
pcPointStyle->pointSize = PointSize.getValue();
}
else if (prop == &SelectionStyle) {
pcHighlight->style = SelectionStyle.getValue() ? Gui::SoFCSelection::BOX
: Gui::SoFCSelection::EMISSIVE;
}
else {
ViewProviderGeometryObject::onChanged(prop);
}
Expand Down

0 comments on commit 5cbf18b

Please sign in to comment.