------------------------------------------------------------------------------------------------
| 58 | |
| 59 | // ------------------------------------------------------------------------------------------------ |
| 60 | Model::Model(uint64_t id, const Element &element, const Document &doc, const std::string &name) : |
| 61 | Object(id, element, name), shading("Y") { |
| 62 | const Scope &sc = GetRequiredScope(element); |
| 63 | const Element *const Shading = sc["Shading"]; |
| 64 | const Element *const Culling = sc["Culling"]; |
| 65 | |
| 66 | if (Shading) { |
| 67 | shading = GetRequiredToken(*Shading, 0).StringContents(); |
| 68 | } |
| 69 | |
| 70 | if (Culling) { |
| 71 | culling = ParseTokenAsString(GetRequiredToken(*Culling, 0)); |
| 72 | } |
| 73 | |
| 74 | props = GetPropertyTable(doc, "Model.FbxNode", element, sc); |
| 75 | ResolveLinks(element, doc); |
| 76 | } |
| 77 | |
| 78 | // ------------------------------------------------------------------------------------------------ |
| 79 | void Model::ResolveLinks(const Element&, const Document &doc) { |
nothing calls this directly
no test coverage detected