Salome HOME
Fix for crash in Object Browser when object was deleted but message not sent
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Duplicate.cpp
index 35134c64b7aa2a43603aebea9975e7d6bc8f2b5c..462a7366bdab45a2b9ebef798aa12ccf0bc41bdf 100644 (file)
@@ -46,3 +46,9 @@ void PartSetPlugin_Duplicate::execute()
   if (!data()->name().empty())
     PartSetPlugin_Part::execute();
 }
+
+const std::string& PartSetPlugin_Duplicate::documentToAdd()
+{
+  // part must be added only to the module document
+  return ModelAPI_Session::get()->moduleDocument()->kind();
+}