]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_Displayer.cpp
Salome HOME
Issue #1412: Activate selection mode FACES for sketcher only in operations with selector:
[modules/shaper.git] / src / XGUI / XGUI_Displayer.cpp
index 4c41e5243c7a7f1dbe4f765ee0f72997a5cd4580..2b3b043e43e6ea506b533149e2a585c6befcd0ec 100644 (file)
@@ -887,8 +887,7 @@ void XGUI_Displayer::activateAIS(const Handle(AIS_InteractiveObject)& theIO,
   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);
 
@@ -1160,7 +1159,7 @@ bool XGUI_Displayer::activate(const Handle(AIS_InteractiveObject)& theIO,
   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;
     }