aOperation->abort();
return;
}
+
+ // MoveTo in order to highlight current object
+ ModuleBase_IViewer* aViewer = aWorkshop->viewer();
+ aViewer->AISContext()->MoveTo(theEvent->x(), theEvent->y(), theWnd->v3dView());
+
// Remember highlighted objects for editing
ModuleBase_ISelection* aSelect = aWorkshop->selection();
QList<ModuleBase_ViewerPrs> aHighlighted = aSelect->getHighlighted();
launchEditing();
} else if (isSketchOpe && isEditing) {
- // If selected another object
- aOperation->abort();
+ // If selected another object commit current result
+ aOperation->commit();
myIsDragging = true;
get2dPoint(theWnd, theEvent, myCurX, myCurY);
myIsDragging = false;
if (myDragDone) {
aViewer->enableMultiselection(true);
- aOp->commit();
+ //aOp->commit();
myEditingFeatures.clear();
myEditingAttr.clear();