Skip to content

Commit

Permalink
PathGui: ViewProviderPath default to bbox selection style
Browse files Browse the repository at this point in the history
* Hide DisplayMode property
* Exclude initial position from bounding box
  • Loading branch information
realthunder authored and wwmayer committed Mar 22, 2017
1 parent 0c68b69 commit 9e5f6b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Path/Gui/ViewProviderPath.cpp
Expand Up @@ -158,6 +158,9 @@ ViewProviderPath::ViewProviderPath()

NormalColor.touch();
MarkerColor.touch();

DisplayMode.setStatus(App::Property::Status::Hidden, true);
SelectionStyle.setValue(1);
}

ViewProviderPath::~ViewProviderPath()
Expand Down Expand Up @@ -634,7 +637,7 @@ void ViewProviderPath::recomputeBoundingBox()
Path::Feature* pcPathObj = static_cast<Path::Feature*>(pcObject);
Base::Placement pl = *(&pcPathObj->Placement.getValue());
Base::Vector3d pt;
for (int i=0;i<pcLineCoords->point.getNum();i++) {
for (int i=1;i<pcLineCoords->point.getNum();i++) {
pt.x = pcLineCoords->point[i].getValue()[0];
pt.y = pcLineCoords->point[i].getValue()[1];
pt.z = pcLineCoords->point[i].getValue()[2];
Expand Down

0 comments on commit 9e5f6b2

Please sign in to comment.