From 82dc6c32ec5075869d3269ed7d4f7ed7cbf635da Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 2 Oct 2010 21:01:29 +0100 Subject: [PATCH] Don't crash when a submodel fails to load. --- simgear/scene/model/SGReaderWriterXML.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5