+ clear selection when rebuilding a shape
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5066 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
36d392f5cd
commit
eb8448ff6c
|
@ -94,7 +94,7 @@
|
||||||
#include <App/Application.h>
|
#include <App/Application.h>
|
||||||
#include <App/Document.h>
|
#include <App/Document.h>
|
||||||
|
|
||||||
#include <Gui/SoFCSelection.h>
|
#include <Gui/SoFCUnifiedSelection.h>
|
||||||
#include <Gui/Selection.h>
|
#include <Gui/Selection.h>
|
||||||
#include <Gui/View3DInventorViewer.h>
|
#include <Gui/View3DInventorViewer.h>
|
||||||
#include <Gui/Utilities.h>
|
#include <Gui/Utilities.h>
|
||||||
|
@ -543,6 +543,12 @@ void ViewProviderPartExt::unsetEdit(int ModNum)
|
||||||
|
|
||||||
void ViewProviderPartExt::updateVisual(const TopoDS_Shape& inputShape)
|
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);
|
||||||
|
|
||||||
TopoDS_Shape cShape(inputShape);
|
TopoDS_Shape cShape(inputShape);
|
||||||
if (cShape.IsNull()) {
|
if (cShape.IsNull()) {
|
||||||
coords ->point .setNum(0);
|
coords ->point .setNum(0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user