This commit is contained in:
Eduardo Bart
2011-12-15 16:42:48 -02:00
parent 8926f33679
commit 1339e18202
3 changed files with 6 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ bool ParticleManager::load(const std::string& filename)
try {
OTMLDocumentPtr doc = OTMLDocument::parse(filename);
const OTMLNodePtr& node = doc->at("ParticleSystem");
for(const OTMLNodePtr& node : doc->children()) {
if(node->tag() == "ParticleSystem") {
ParticleSystemPtr particleSystem = ParticleSystemPtr(new ParticleSystem);