From 12cf6439688fa2d21b1e9477f11edfc3a1124a89 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 29 Dec 2014 17:08:55 +0300 Subject: [PATCH] It undoes one modification, which leads to crash in the full SALOME mode --- src/PartSet/PartSet_SketcherMgr.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index c8575ee0c..5869900b1 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -105,7 +105,7 @@ PartSet_SketcherMgr::PartSet_SketcherMgr(PartSet_Module* theModule) ModuleBase_IWorkshop* aWorkshop = myModule->workshop(); ModuleBase_IViewer* aViewer = aWorkshop->viewer(); - myPreviousSelectionEnabled = aViewer->isSelectionEnabled(); + myPreviousSelectionEnabled = true;//aViewer->isSelectionEnabled(); connect(aViewer, SIGNAL(mousePress(ModuleBase_IViewWindow*, QMouseEvent*)), this, SLOT(onMousePressed(ModuleBase_IViewWindow*, QMouseEvent*))); @@ -221,6 +221,14 @@ void PartSet_SketcherMgr::onMouseReleased(ModuleBase_IViewWindow* theWnd, QMouse aViewer->enableMultiselection(true); //aOp->commit(); myFeature2AttributeMap.clear(); + + // Reselect edited object + /*aViewer->AISContext()->MoveTo(theEvent->x(), theEvent->y(), theWnd->v3dView()); + if (theEvent->modifiers() & Qt::ShiftModifier) + aViewer->AISContext()->ShiftSelect(); + else + aViewer->AISContext()->Select(); + */ return; } } -- 2.39.2