API: fix document.copyObject not working when with dependencies

copyObject failed with an error when attempting to copy an object with
dependencies from one document to another.

http://forum.freecadweb.org/viewtopic.php?f=22&t=13533&p=108288#p108288
This commit is contained in:
DeepSOIC 2015-12-16 20:43:12 +03:00
parent 43e0083c72
commit dd8027a839

View File

@ -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