Skip to content

Commit

Permalink
Path: remove old dislay if path becomes empty - fixes #2484
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 30, 2016
1 parent 9907694 commit 40b00e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Path/Gui/ViewProviderPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,11 @@ void ViewProviderPath::updateData(const App::Property* prop)
if (prop == &pcPathObj->Path) {

const Toolpath &tp = pcPathObj->Path.getValue();
if(tp.getSize()==0)
if(tp.getSize()==0) {
pcLineCoords->point.deleteValues(0);
pcMarkerCoords->point.deleteValues(0);
return;
}

ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part");
float deviation = hGrp->GetFloat("MeshDeviation",0.2);
Expand Down

0 comments on commit 40b00e5

Please sign in to comment.