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 6289ff40d5
commit 098927fb54

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();
}
}