From: sbh Date: Wed, 9 Apr 2014 06:48:54 +0000 (+0400) Subject: Corrections according to ModelAPI modifications: method to create Feature has been... X-Git-Tag: V_0.1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84a820f6440bc98dd413c8e5bd7e476953404a56;p=modules%2Fshaper.git Corrections according to ModelAPI modifications: method to create Feature has been moved into the Document; --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 1fc489795..1011fa2ca 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #ifdef _DEBUG #include @@ -286,7 +287,8 @@ bool ModuleBase_Operation::isReadyToStart() const */ void ModuleBase_Operation::startOperation() { - myFeature = ModelAPI_PluginManager::get()->createFeature(myOperationId.toStdString()); + std::shared_ptr aDoc = ModelAPI_PluginManager::get()->rootDocument(); + myFeature = aDoc->addFeature(myOperationId.toStdString()); //emit callSlot(); //commit(); }