Salome HOME
Sketch selection in the browser for extrusion operation
[modules/shaper.git] / src / PartSet / PartSet_Module.cpp
index cb62b8797e4bb8cf8fc57af15810e506f12fa78e..83f59bfe61bab2cde6132c700e168076a81b57df 100644 (file)
@@ -218,6 +218,13 @@ void PartSet_Module::operationStopped(ModuleBase_Operation* theOperation)
   myWorkshop->viewer()->removeSelectionFilter(myDocumentShapeFilter);
 }
 
+ModuleBase_Operation* PartSet_Module::currentOperation() const
+{
+  XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(workshop());
+  XGUI_OperationMgr* anOpMgr = aConnector->workshop()->operationMgr();
+  return anOpMgr->currentOperation();
+}
+
 bool PartSet_Module::canUndo() const
 {
   bool aCanUndo = false;