Frederic: Also copy the attributes over to the new tree.
This commit is contained in:
@@ -591,6 +591,9 @@ copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy the attributes.
|
||||||
|
out->setAttributes( in->getAttributes() );
|
||||||
|
|
||||||
// Next, copy the children.
|
// Next, copy the children.
|
||||||
int nChildren = in->nChildren();
|
int nChildren = in->nChildren();
|
||||||
for (int i = 0; i < nChildren; i++) {
|
for (int i = 0; i < nChildren; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user