From: James Turner Date: Sat, 2 Oct 2010 20:01:29 +0000 (+0100) Subject: Don't crash when a submodel fails to load. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82dc6c32ec5075869d3269ed7d4f7ed7cbf635da;p=simgear.git Don't crash when a submodel fails to load. --- diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index eee6e08a..0b5def18 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -350,6 +350,7 @@ sgLoad3DModel_internal(const SGPath& path, } catch (const sg_exception &t) { SG_LOG(SG_INPUT, SG_ALERT, "Failed to load submodel: " << t.getFormattedMessage() << "\n\tfrom:" << t.getOrigin()); + continue; } osg::ref_ptr submodel_final = submodel;