+ clear highlighting when re-creating shape
This commit is contained in:
parent
24a3b27150
commit
72a260cc6e
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user