]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
It undoes one modification, which leads to crash in the full SALOME mode
authornds <natalia.donis@opencascade.com>
Mon, 29 Dec 2014 14:08:55 +0000 (17:08 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 29 Dec 2014 14:08:55 +0000 (17:08 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index c8575ee0c1fb49bace2a20ed05c52937d9717a18..5869900b1cb94c9184aa55cc162e901099ae0b6d 100644 (file)
@@ -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;
     }
   }