From 84a820f6440bc98dd413c8e5bd7e476953404a56 Mon Sep 17 00:00:00 2001 From: sbh Date: Wed, 9 Apr 2014 10:48:54 +0400 Subject: [PATCH] Corrections according to ModelAPI modifications: method to create Feature has been moved into the Document; --- src/ModuleBase/ModuleBase_Operation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2