Path: Fixed wrong display of non-displayable paths - fixes #2484

This commit is contained in:
Yorik van Havre 2017-02-15 15:40:25 -02:00
parent 3076b5938f
commit c1dad1bdf4

View File

@ -230,10 +230,11 @@ void ViewProviderPath::updateData(const App::Property* prop)
if (prop == &pcPathObj->Path) {
pcLineCoords->point.deleteValues(0);
pcMarkerCoords->point.deleteValues(0);
const Toolpath &tp = pcPathObj->Path.getValue();
if(tp.getSize()==0) {
pcLineCoords->point.deleteValues(0);
pcMarkerCoords->point.deleteValues(0);
return;
}