PathGui: ViewProviderPath default to bbox selection style

* Hide DisplayMode property
* Exclude initial position from bounding box
This commit is contained in:
Zheng, Lei
2017-03-21 19:16:00 +08:00
committed by wmayer
parent 808c4a8945
commit aad8ca4dd9

View File

@@ -158,6 +158,9 @@ ViewProviderPath::ViewProviderPath()
NormalColor.touch();
MarkerColor.touch();
DisplayMode.setStatus(App::Property::Status::Hidden, true);
SelectionStyle.setValue(1);
}
ViewProviderPath::~ViewProviderPath()
@@ -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];