}
}
}
- } else if (mySketchMgr->sketchOperationIdList().contains(aOperation->id()) &&
- aOperation->isEditOperation()) {
- // if this is sketch operation in edit mode
-
- ModuleBase_ISelection* aSelect = myWorkshop->selection();
- //aSelect->selectedShapes();
- }
+ }
}
- // after movement the solver will call the update event: optimization
-
void PartSet_Module::onKeyRelease(ModuleBase_IViewWindow* theWnd, QKeyEvent* theEvent)
{
XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
aOperation->abort();
return;
}
- if ((aHighlighted.size() == 1) && (aSelected.size() == 0)) {
+ if (aSelObjects.size() == 1) {
// Move by selected shape (vertex). Can be used only for single selection
foreach(ModuleBase_ViewerPrs aPrs, aHighlighted) {
FeaturePtr aFeature = ModelAPI_Feature::feature(aHighlighted.first().object());
aOp->commit();
myEditingFeatures.clear();
myEditingAttr.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;
}
}
if (!aViewer->isMultiSelectionEnabled()) {
aViewer->enableMultiselection(true);
}
- //aViewer->AISContext()->MoveTo(theEvent->x(), theEvent->y(), theWnd->v3dView());
- //if (theEvent->modifiers() & Qt::ShiftModifier)
- // aViewer->AISContext()->ShiftSelect();
- //else
- // aViewer->AISContext()->Select();
}
void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)