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-e03cc46cb475master
parent
641b1a3d56
commit
b083e20be4
|
@ -1888,8 +1888,6 @@ void CSceneManager::readSceneNode(io::IXMLReader* reader, ISceneNode* parent, IS
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
os::Printer::log("Could not create scene node of unknown type", attrName.c_str());
|
os::Printer::log("Could not create scene node of unknown type", attrName.c_str());
|
||||||
else if ( userDataSerializer )
|
|
||||||
userDataSerializer->OnCreateNode(node);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// read attributes
|
// read attributes
|
||||||
|
@ -1946,6 +1944,8 @@ void CSceneManager::readSceneNode(io::IXMLReader* reader, ISceneNode* parent, IS
|
||||||
if (endreached)
|
if (endreached)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if ( node && userDataSerializer )
|
||||||
|
userDataSerializer->OnCreateNode(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue