From 72a260cc6e3b9a866b92f42b84f997b3bacf4dfd Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 6 Oct 2015 00:19:43 +0200 Subject: [PATCH] + clear highlighting when re-creating shape --- src/Mod/Part/Gui/ViewProviderExt.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index 5a49ea392475..fce0a886f000 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -731,10 +731,16 @@ void ViewProviderPartExt::unsetEdit(int ModNum) void ViewProviderPartExt::updateVisual(const TopoDS_Shape& inputShape) { // Clear selection - Gui::SoSelectionElementAction action(Gui::SoSelectionElementAction::None); - action.apply(this->faceset); - action.apply(this->lineset); - action.apply(this->nodeset); + Gui::SoSelectionElementAction saction(Gui::SoSelectionElementAction::None); + saction.apply(this->faceset); + saction.apply(this->lineset); + saction.apply(this->nodeset); + + // Clear highlighting + Gui::SoHighlightElementAction haction; + haction.apply(this->faceset); + haction.apply(this->lineset); + haction.apply(this->nodeset); TopoDS_Shape cShape(inputShape); if (cShape.IsNull()) {