Path: Fixed wrong display of non-displayable paths - fixes #2484
This commit is contained in:
parent
3076b5938f
commit
c1dad1bdf4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user