------------------------------------------------------------------------------------------------
| 57 | |
| 58 | // ------------------------------------------------------------------------------------------------ |
| 59 | NodeAttribute::NodeAttribute(uint64_t id, const Element &element, const Document &doc, const std::string &name) : |
| 60 | Object(id, element, name), props() { |
| 61 | const Scope &sc = GetRequiredScope(element); |
| 62 | |
| 63 | const std::string &classname = ParseTokenAsString(GetRequiredToken(element, 2)); |
| 64 | |
| 65 | // hack on the deriving type but Null/LimbNode attributes are the only case in which |
| 66 | // the property table is by design absent and no warning should be generated |
| 67 | // for it. |
| 68 | const bool is_null_or_limb = !strcmp(classname.c_str(), "Null") || !strcmp(classname.c_str(), "LimbNode"); |
| 69 | props = GetPropertyTable(doc, "NodeAttribute.Fbx" + classname, element, sc, is_null_or_limb); |
| 70 | } |
| 71 | |
| 72 | // ------------------------------------------------------------------------------------------------ |
| 73 | CameraSwitcher::CameraSwitcher(uint64_t id, const Element &element, const Document &doc, const std::string &name) : |
nothing calls this directly
no test coverage detected