void XMLParagraph::Join(const XMLParagraph &rstInput) { if(rstInput.m_XMLDocument.FirstChild() == nullptr){ return; } for(auto pNode = rstInput.m_XMLDocument.FirstChild()->FirstChild(); pNode; pNode = pNode->NextSibling()){ m_XMLDocument.FirstChild()->InsertEndChild(pNode->DeepClone(m_XMLDocument.GetDocument())); } }
void DeepClone(FbxNode* n, FbxNode* container){ auto cloned = n->Clone(FbxObject::ECloneType::eDeepClone, container); for (auto ix = 0; ix < n->GetChildCount(); ++ix){ DeepClone(n->GetChild(ix), (FbxNode*) cloned); } }