]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
It switch on the vertex selection during edit operation.
authornds <natalia.donis@opencascade.com>
Mon, 29 Dec 2014 07:03:32 +0000 (10:03 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 29 Dec 2014 07:03:32 +0000 (10:03 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 466cb64294fb598cc0eb6681dfb7e8bb5c4c75cf..6937e5181730d59595021f1861ea5f1258e35ce5 100644 (file)
@@ -388,6 +388,13 @@ void PartSet_SketcherMgr::get2dPoint(ModuleBase_IViewWindow* theWnd, QMouseEvent
 
 void PartSet_SketcherMgr::launchEditing()
 {
+  // there should be activate the vertex selection mode because the edit can happens by the selected
+  // point
+  QIntList aModes;
+  aModes << TopAbs_VERTEX;
+  XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(myModule->workshop());
+  aConnector->activateSubShapesSelection(aModes);
+
   if (myEditingFeatures.size() > 0) {
     FeaturePtr aFeature = myEditingFeatures.first();
     std::shared_ptr<SketchPlugin_Feature> aSPFeature =