fixes related to tinyxml2
This commit is contained in:
@@ -876,11 +876,10 @@ bool btBulletXmlWorldImporter::loadFile(const char* fileName)
|
|||||||
{
|
{
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
|
|
||||||
bool loadOkay = doc.LoadFile(fileName);
|
|
||||||
//dump_to_stdout(&doc,0);
|
|
||||||
|
|
||||||
|
XMLError loadOkay = doc.LoadFile(fileName);
|
||||||
if (loadOkay)
|
|
||||||
|
if (loadOkay==XML_SUCCESS)
|
||||||
{
|
{
|
||||||
if (get_int_attribute_by_name(doc.FirstChildElement()->ToElement(),"version", &m_fileVersion))
|
if (get_int_attribute_by_name(doc.FirstChildElement()->ToElement(),"version", &m_fileVersion))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ void LoadMeshFromCollada(const char* relativeFileName, btAlignedObjectArray<GLIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
if (!doc.LoadFile(filename))
|
if (doc.LoadFile(filename) != XML_SUCCESS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//We need units to be in meter, so apply a scaling using the asset/units meter
|
//We need units to be in meter, so apply a scaling using the asset/units meter
|
||||||
|
|||||||
Reference in New Issue
Block a user