| 544 | } |
| 545 | |
| 546 | void XmlSerializer::ReadBaseMaterials(XmlNode &node) { |
| 547 | int id = IdNotSet; |
| 548 | if (getNodeAttribute(node, D3MF::XmlTag::id, id)) { |
| 549 | BaseMaterials *baseMaterials = new BaseMaterials(id); |
| 550 | |
| 551 | for (XmlNode ¤tNode : node.children()) { |
| 552 | const std::string currentName = currentNode.name(); |
| 553 | if (currentName == XmlTag::basematerials_base) { |
| 554 | baseMaterials->mMaterialIndex.push_back(static_cast<unsigned int>(mMaterials.size())); |
| 555 | mMaterials.push_back(readMaterialDef(currentNode, id)); |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | mResourcesDictionnary.insert(std::make_pair(id, baseMaterials)); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | void XmlSerializer::ReadEmbeddecTexture(XmlNode &node) { |
| 564 | if (node.empty()) { |
nothing calls this directly
no test coverage detected