]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_IModule.cpp
Salome HOME
Use activation only for objects which are not result of a current operation
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.cpp
index 1f759feb5b70a88fd16ccb21f74633a50c27ca23..28f25fd2940d9caf5e67685732cd637830a7b2e4 100644 (file)
@@ -148,3 +148,9 @@ void ModuleBase_IModule::editFeature(FeaturePtr theFeature)
   anOperation->setFeature(theFeature);
   sendOperation(anOperation);
 }
+
+bool ModuleBase_IModule::canActivateSelection(const ObjectPtr& theObject) const
+{
+  ModuleBase_Operation* aOperation = myWorkshop->currentOperation();
+  return !(aOperation && (!aOperation->isEditOperation()) && aOperation->hasObject(theObject));
+}
\ No newline at end of file