// Got the index, so grab the node.
SGPropertyNode * node = st.node->getChild(name, index, true);
- node->clearValue();
// Get the access-mode attributes,
// but don't set yet (in case they
}
}
- push_state(node, atts.getValue("type"), mode);
+ const char *type = atts.getValue("type");
+ if (type)
+ node->clearValue();
+ push_state(node, type, mode);
}
}
}
}
+ // copy the attributes.
+ out->setAttributes( in->getAttributes() );
+
// Next, copy the children.
int nChildren = in->nChildren();
for (int i = 0; i < nChildren; i++) {