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:
parent
43e0083c72
commit
dd8027a839
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user