FeaturePtr aFeature = ModelAPI_Feature::feature(aObject);
if (!aFeature || aFeature != feature() || (aSelected.size() > 1)) {
if (commit()) {
+ theViewer->enableSelection(true);
emit featureConstructed(feature(), FM_Deactivation);
// If we have selection and prehilighting with shift pressed
}
//}
}
- }
+ }
}
void PartSet_OperationFeatureEdit::mouseMoved(QMouseEvent* theEvent, ModuleBase_IViewer* theViewer)
Handle(V3d_View) aView = theViewer->activeView();
gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), aView);
- if (theViewer->isSelectionEnabled())
- theViewer->enableSelection(false);
+ theViewer->enableSelection(false);
//blockSelection(true);
if (myCurPoint.myIsInitialized) {
QMouseEvent* theEvent, ModuleBase_IViewer* theViewer,
ModuleBase_ISelection* theSelection)
{
+ theViewer->enableSelection(true);
ModuleBase_ModelWidget* aActiveWgt = 0;
if (myPropertyPanel)
aActiveWgt = myPropertyPanel->activeWidget();
}// else {
//blockSelection(false);
//}
- if (!theViewer->isSelectionEnabled())
- theViewer->enableSelection(true);
}
void PartSet_OperationFeatureEdit::mouseDoubleClick(