Skip to content

Commit

Permalink
+ clear highlighting when re-creating shape
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 5, 2015
1 parent 24a3b27 commit 72a260c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Mod/Part/Gui/ViewProviderExt.cpp
Expand Up @@ -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()) {
Expand Down

0 comments on commit 72a260c

Please sign in to comment.