From: nds Date: Mon, 29 Dec 2014 14:08:55 +0000 (+0300) Subject: It undoes one modification, which leads to crash in the full SALOME mode X-Git-Tag: V_0.7.0_rc1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12cf6439688fa2d21b1e9477f11edfc3a1124a89;p=modules%2Fshaper.git It undoes one modification, which leads to crash in the full SALOME mode --- 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; } }