From 9e5f6b212e76cac3221018b9d9b047ff73b9a16e Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 21 Mar 2017 19:16:00 +0800 Subject: [PATCH] PathGui: ViewProviderPath default to bbox selection style * Hide DisplayMode property * Exclude initial position from bounding box --- src/Mod/Path/Gui/ViewProviderPath.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Gui/ViewProviderPath.cpp b/src/Mod/Path/Gui/ViewProviderPath.cpp index 9a8b402244dd..d3672297e29f 100644 --- a/src/Mod/Path/Gui/ViewProviderPath.cpp +++ b/src/Mod/Path/Gui/ViewProviderPath.cpp @@ -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(pcObject); Base::Placement pl = *(&pcPathObj->Placement.getValue()); Base::Vector3d pt; - for (int i=0;ipoint.getNum();i++) { + for (int i=1;ipoint.getNum();i++) { pt.x = pcLineCoords->point[i].getValue()[0]; pt.y = pcLineCoords->point[i].getValue()[1]; pt.z = pcLineCoords->point[i].getValue()[2];