]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Execute feature on operation start/commit.
authorsbh <sergey.belash@opencascade.com>
Thu, 10 Apr 2014 09:53:42 +0000 (13:53 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 10 Apr 2014 09:53:42 +0000 (13:53 +0400)
src/ModuleBase/ModuleBase_Operation.cpp

index 1011fa2ca382a3709a44f0cb8427fc9e9a9131bb..c3a0bd6fec3cef5b19649dc6fc7ba1f7b22689a9 100644 (file)
@@ -289,6 +289,7 @@ void ModuleBase_Operation::startOperation()
 {
   std::shared_ptr<ModelAPI_Document> aDoc = ModelAPI_PluginManager::get()->rootDocument();
   myFeature = aDoc->addFeature(myOperationId.toStdString());
+  myFeature->execute();
   //emit callSlot();
   //commit();
 }
@@ -318,6 +319,7 @@ void ModuleBase_Operation::abortOperation()
  */
 void ModuleBase_Operation::commitOperation()
 {
+  myFeature->execute();
 }
 
 /*!