diff --git a/wrap/io_trimesh/import_dae.h b/wrap/io_trimesh/import_dae.h index 5d150849..02feaf95 100644 --- a/wrap/io_trimesh/import_dae.h +++ b/wrap/io_trimesh/import_dae.h @@ -862,7 +862,9 @@ static Matrix44f getTransfMatrixFromNode(const QDomElement parentNode) geoinst_found |= true; QDomNodeList geolib = info.doc->elementsByTagName("library_geometries"); - assert(geolib.size() == 1); + //assert(geolib.size() == 1); + if (geolib.size() != 1) + return false; //!!!!!!!!!!!!!!!!!here will be the code for geometry transformations!!!!!!!!!!!!!!!!!!!!!! info.numvert = 0; info.numface = 0; @@ -924,7 +926,9 @@ static Matrix44f getTransfMatrixFromNode(const QDomElement parentNode) if (!geoinst_found) { QDomNodeList geolib = info.doc->elementsByTagName("library_geometries"); - assert(geolib.size() == 1); + //assert(geolib.size() == 1); + if (geolib.size() != 1) + return false; QDomNodeList geochild = geolib.at(0).toElement().elementsByTagName("geometry"); //!!!!!!!!!!!!!!!!!here will be the code for geometry transformations!!!!!!!!!!!!!!!!!!!!!! info.numvert = 0;