From: nds Date: Mon, 29 Dec 2014 07:03:32 +0000 (+0300) Subject: It switch on the vertex selection during edit operation. X-Git-Tag: V_0.7.0_rc1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e59af63fefc7420272275b1722d7d62c08f40205;p=modules%2Fshaper.git It switch on the vertex selection during edit operation. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 466cb6429..6937e5181 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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(myModule->workshop()); + aConnector->activateSubShapesSelection(aModes); + if (myEditingFeatures.size() > 0) { FeaturePtr aFeature = myEditingFeatures.first(); std::shared_ptr aSPFeature =