From e59af63fefc7420272275b1722d7d62c08f40205 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 29 Dec 2014 10:03:32 +0300 Subject: [PATCH] It switch on the vertex selection during edit operation. --- src/PartSet/PartSet_SketcherMgr.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 = -- 2.39.2