if (!aContext.IsNull()) {
if (myWorkshop->module()) {
int aMode = (theMode > 8)? theMode : AIS_Shape::SelectionType(theMode);
- if (myWorkshop->module()->canActivateSelectionMode(theIO, aMode))
- aContext->Activate(theIO, theMode, false);
+ aContext->Activate(theIO, theMode, false);
} else
aContext->Activate(theIO, theMode, false);
for (; itr.More(); itr.Next() ) {
Standard_Integer aMode = itr.Value();
int aShapeMode = (aMode > 8)? aMode : AIS_Shape::SelectionType(aMode);
- if (!theModes.contains(aMode) || (myWorkshop->module()->needDeactivateSelectionMode(theIO, aShapeMode))) {
+ if (!theModes.contains(aMode)) {
deactivateAIS(theIO, aMode);
isDeactivated = true;
}