]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Corrections according to ModelAPI modifications: method to create Feature has been...
authorsbh <sergey.belash@opencascade.com>
Wed, 9 Apr 2014 06:48:54 +0000 (10:48 +0400)
committersbh <sergey.belash@opencascade.com>
Wed, 9 Apr 2014 06:48:54 +0000 (10:48 +0400)
src/ModuleBase/ModuleBase_Operation.cpp

index 1fc489795464c7ad50edfcb1df8ac1d0f3886421..1011fa2ca382a3709a44f0cb8427fc9e9a9131bb 100644 (file)
@@ -12,6 +12,7 @@
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_Object.h>
 #include <ModelAPI_PluginManager.h>
+#include <ModelAPI_Document.h>
 
 #ifdef _DEBUG
 #include <QDebug>
@@ -286,7 +287,8 @@ bool ModuleBase_Operation::isReadyToStart() const
  */
 void ModuleBase_Operation::startOperation()
 {
-  myFeature = ModelAPI_PluginManager::get()->createFeature(myOperationId.toStdString());
+  std::shared_ptr<ModelAPI_Document> aDoc = ModelAPI_PluginManager::get()->rootDocument();
+  myFeature = aDoc->addFeature(myOperationId.toStdString());
   //emit callSlot();
   //commit();
 }