Salome HOME
Ignore selection of groups for operations
[modules/shaper.git] / src / PartSet / PartSet_Filters.cpp
index 3842bc8b9ca21b3913dfb84adc468302e6ec749c..d82447430e3757d240e7dacbef36fce48ec17ca5 100644 (file)
@@ -25,7 +25,7 @@ Standard_Boolean PartSet_GlobalFilter::IsOk(const Handle(SelectMgr_EntityOwner)&
   ModuleBase_Operation* anOperation = myWorkshop->module()->currentOperation();
   // the shapes from different documents should be provided if there is no started operation
   // in order to show/hide results
-  if (!anOperation) {
+  if (anOperation) {
     aValid = false;
     if (ModuleBase_ShapeDocumentFilter::IsOk(theOwner)) {
       std::shared_ptr<GeomAPI_AISObject> aAISObj = AISObjectPtr(new GeomAPI_AISObject());