From 7bd02d2e88bb0080a7f67c4d30c7ba3d31f1b8a6 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 26 Dec 2014 17:18:18 +0300 Subject: [PATCH] The local selection restore for a feature vertex (it is checked on the line feature) It commits the previous functionality, because the LenghtConstraint digit is disappeared with it. --- src/PartSet/PartSet_SketcherMgr.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 01e0fa98e..edc27e0b7 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -270,7 +270,7 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve std::dynamic_pointer_cast(aFeature); if (aSketchFeature) { // save the previous selection - ModuleBase_IWorkshop* aWorkshop = myModule->workshop(); + /*ModuleBase_IWorkshop* aWorkshop = myModule->workshop(); XGUI_ModuleConnector* aConnector = dynamic_cast(aWorkshop); XGUI_Displayer* aDisplayer = aConnector->workshop()->displayer(); QIntList anActivatedModes; @@ -280,13 +280,13 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve aDisplayer->getModesOfActivation(aResult, anActivatedModes); std::list aSelectedAttributes; - getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes); + getCurrentSelection(aSketchFeature, myCurrentSketch, aWorkshop, aSelectedAttributes);*/ // save the previous selection: end aSketchFeature->move(dX, dY); ModelAPI_EventCreator::get()->sendUpdated(aSketchFeature, anEvent); - + /* // TODO: the selection restore should be after the AIS presentation is rebuilt Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); @@ -305,12 +305,12 @@ void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEve aContext->AddOrRemoveSelected(anOwnersToSelect(i), false); // SetSelected() aContext->UpdateCurrentViewer(); - // restore the previous selection + // restore the previous selection*/ } } // TODO: set here - //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); - //Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_MOVED)); + Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); } myDragDone = true; myCurX = aX; -- 2.39.2