From cdd9efd8fbc75f120188ae16eed7471dc6492ac3 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 30 Oct 2014 17:56:39 +0300 Subject: [PATCH] Issue #206: Clear selection after create operation commit --- src/PartSet/PartSet_Module.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 035444ba9..634e1d25a 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -186,6 +186,7 @@ void PartSet_Module::onOperationStopped(ModuleBase_Operation* theOperation) aDisplayer->activate(*anIt, aModes); } aDisplayer->activate(aFeature, aModes); + aDisplayer->clearSelected(); } } }// else { @@ -217,24 +218,6 @@ void PartSet_Module::onMousePressed(QMouseEvent* theEvent) dynamic_cast(workshop()->currentOperation()); if (aPreviewOp) { ModuleBase_ISelection* aSelection = workshop()->selection(); - // Initialise operation with preliminary selection - //QList aSelected = aSelection->getSelected(); - //QList aHighlighted = aSelection->getHighlighted(); - //QList aObjList; - //bool aHasShift = (theEvent->modifiers() & Qt::ShiftModifier); - //if (aHasShift) { - // foreach(ModuleBase_ViewerPrs aPrs, aSelected) - // aObjList.append(aPrs.object()); - - // foreach (ModuleBase_ViewerPrs aPrs, aHighlighted) { - // if (!aObjList.contains(aPrs.object())) - // aObjList.append(aPrs.object()); - // } - //} else { - // foreach(ModuleBase_ViewerPrs aPrs, aHighlighted) - // aObjList.append(aPrs.object()); - //} - //onSetSelection(aObjList); aPreviewOp->mousePressed(theEvent, myWorkshop->viewer(), aSelection); } } -- 2.39.2