diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 606f99db5..69e849f6d 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -2162,7 +2162,7 @@ DocumentObject* Document::copyObject(DocumentObject* obj, bool recursive) MergeDocuments md(this); if (recursive) { - objs = getDependencyList(objs); + objs = obj->getDocument()->getDependencyList(objs); } unsigned int memsize=1000; // ~ for the meta-information