Commit b083e20b authored by hybrid's avatar hybrid

Fixed OnCreateNode call to be made only after the attributes and all children were loaded.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1434 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 641b1a3d
......@@ -1888,8 +1888,6 @@ void CSceneManager::readSceneNode(io::IXMLReader* reader, ISceneNode* parent, IS
if (!node)
os::Printer::log("Could not create scene node of unknown type", attrName.c_str());
else if ( userDataSerializer )
userDataSerializer->OnCreateNode(node);
}
// read attributes
......@@ -1946,6 +1944,8 @@ void CSceneManager::readSceneNode(io::IXMLReader* reader, ISceneNode* parent, IS
if (endreached)
break;
}
if ( node && userDataSerializer )
userDataSerializer->OnCreateNode(node);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment