| 222 | } |
| 223 | |
| 224 | void DotSceneLoader::processNodes(pugi::xml_node& XMLNode) |
| 225 | { |
| 226 | LogManager::getSingleton().logMessage("[DotSceneLoader] Processing Nodes...", LML_TRIVIAL); |
| 227 | |
| 228 | // Process node (*) |
| 229 | for (auto pElement : XMLNode.children("node")) |
| 230 | { |
| 231 | processNode(pElement); |
| 232 | } |
| 233 | |
| 234 | // Process position (?) |
| 235 | if (auto pElement = XMLNode.child("position")) |
| 236 | { |
| 237 | mAttachNode->setPosition(parseVector3(pElement)); |
| 238 | } |
| 239 | |
| 240 | // Process rotation (?) |
| 241 | if (auto pElement = XMLNode.child("rotation")) |
| 242 | { |
| 243 | mAttachNode->setOrientation(parseQuaternion(pElement)); |
| 244 | } |
| 245 | |
| 246 | // Process scale (?) |
| 247 | if (auto pElement = XMLNode.child("scale")) |
| 248 | { |
| 249 | mAttachNode->setScale(parseVector3(pElement)); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | void DotSceneLoader::processExternals(pugi::xml_node& XMLNode) |
| 254 | { |
nothing calls this directly
no test coverage detected