Frederic: Also copy the attributes over to the new tree.

This commit is contained in:
ehofman
2005-06-28 11:19:41 +00:00
parent 84e87f0e8a
commit 81546820ab

View File

@@ -591,6 +591,9 @@ copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
}
}
// copy the attributes.
out->setAttributes( in->getAttributes() );
// Next, copy the children.
int nChildren = in->nChildren();
for (int i = 0; i < nChildren; i++) {