+ clear highlighting when re-creating shape

This commit is contained in:
wmayer 2015-10-06 00:19:43 +02:00
parent 24a3b27150
commit 72a260cc6e

View File

@ -731,10 +731,16 @@ void ViewProviderPartExt::unsetEdit(int ModNum)
void ViewProviderPartExt::updateVisual(const TopoDS_Shape& inputShape) void ViewProviderPartExt::updateVisual(const TopoDS_Shape& inputShape)
{ {
// Clear selection // Clear selection
Gui::SoSelectionElementAction action(Gui::SoSelectionElementAction::None); Gui::SoSelectionElementAction saction(Gui::SoSelectionElementAction::None);
action.apply(this->faceset); saction.apply(this->faceset);
action.apply(this->lineset); saction.apply(this->lineset);
action.apply(this->nodeset); 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); TopoDS_Shape cShape(inputShape);
if (cShape.IsNull()) { if (cShape.IsNull()) {