PD: properly reset line colors when un-highlighting loft profile/sections

This commit is contained in:
wmayer
2021-12-13 15:46:04 +01:00
parent e6ea67bc1e
commit 0be9d97c91

View File

@@ -166,8 +166,8 @@ void ViewProviderLoft::highlightReferences(Part::Feature* base, const std::vecto
highlighter.getEdgeColors(elements, colors);
svp->LineColorArray.setValues(colors);
}
else if (!edgeColors.empty()) {
svp->LineColorArray.setValues(edgeColors);
else {
svp->LineColorArray.setValues({svp->LineColor.getValue()});
edgeColors.clear();
}
}