From 0be9d97c91a4c4133ab7dec8889023fe2ce5ad18 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 13 Dec 2021 15:46:04 +0100 Subject: [PATCH] PD: properly reset line colors when un-highlighting loft profile/sections --- src/Mod/PartDesign/Gui/ViewProviderLoft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp index 756175e487..371e09b360 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp @@ -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(); } }