Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Danielsson <max@autious.net>2022-05-10 11:18:54 +0300
committerGitHub <noreply@github.com>2022-05-10 11:18:54 +0300
commitffdf2154d313da11519838c007f86a8fa0747381 (patch)
tree62dc3b64943e06acdd2aff07fecea3ed3eaa93e6 /Source/Ogda/Searchers/Seekers/skeletonseeker.cpp
parent445d165b4693cc6928e7ecb3dc79029ca1cd2f9e (diff)
parent608a269f9742d891b0525db8f308a3248df4a363 (diff)
Merge pull request #66 from feliwir/clang-format
Clang format
Diffstat (limited to 'Source/Ogda/Searchers/Seekers/skeletonseeker.cpp')
-rw-r--r--Source/Ogda/Searchers/Seekers/skeletonseeker.cpp31
1 files changed, 13 insertions, 18 deletions
diff --git a/Source/Ogda/Searchers/Seekers/skeletonseeker.cpp b/Source/Ogda/Searchers/Seekers/skeletonseeker.cpp
index c94a3047..68481df6 100644
--- a/Source/Ogda/Searchers/Seekers/skeletonseeker.cpp
+++ b/Source/Ogda/Searchers/Seekers/skeletonseeker.cpp
@@ -29,40 +29,35 @@
#include <Utility/strings.h>
#include <Logging/logdata.h>
-std::vector<Item> SkeletonSeeker::SearchXML( const Item & item, TiXmlDocument& doc )
-{
+std::vector<Item> SkeletonSeeker::SearchXML(const Item& item, TiXmlDocument& doc) {
std::vector<Item> items;
TiXmlHandle hRoot(&doc);
const char* roots[] =
- {
- "rig"
- };
-
- TiXmlElement *eRoot = hRoot.FirstChildElement().Element();
-
- if( !eRoot )
- {
+ {
+ "rig"};
+
+ TiXmlElement* eRoot = hRoot.FirstChildElement().Element();
+
+ if (!eRoot) {
LOGE << "Can't find anything in file listed " << item << std::endl;
}
- while( eRoot )
- {
- if( FindStringInArray( roots, ARRLEN(roots), eRoot->Value() ) < 0 )
- {
+ while (eRoot) {
+ if (FindStringInArray(roots, ARRLEN(roots), eRoot->Value()) < 0) {
LOGE << "Unknown root " << eRoot->Value() << std::endl;
}
std::vector<attribpair> attribs;
- attribs.push_back(attribpair("bone_path", "skeleton"));
+ attribs.push_back(attribpair("bone_path", "skeleton"));
attribs.push_back(attribpair("model_path", "model"));
- attribs.push_back(attribpair("mass_path", "skeleton"));
+ attribs.push_back(attribpair("mass_path", "skeleton"));
std::vector<const char*> attribs_ignore;
- AttributeScanner::Do( items, item, eRoot, attribs, attribs_ignore );
-
+ AttributeScanner::Do(items, item, eRoot, attribs, attribs_ignore);
+
eRoot = eRoot->NextSiblingElement();
}
return items;