Salome HOME
Make initialization plugin:
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.cpp
index 65cfa361ed3e8645cbf3812d45a90d83f5e31f68..1a2e641a2981aa18d740c5963c742d56ce8f9418 100644 (file)
@@ -111,7 +111,8 @@ void ModelAPI_Feature::eraseResults()
 
 std::shared_ptr<ModelAPI_Document> ModelAPI_Feature::documentToAdd()
 {
-  return ModelAPI_Session::get()->activeDocument();
+  // null pointer t ouse the current document
+  return std::shared_ptr<ModelAPI_Document>();
 }
 
 void ModelAPI_Feature::erase()