]> git.mxchange.org Git - simgear.git/commitdiff
Don't crash when a submodel fails to load.
authorJames Turner <zakalawe@mac.com>
Sat, 2 Oct 2010 20:01:29 +0000 (21:01 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 2 Oct 2010 20:01:29 +0000 (21:01 +0100)
simgear/scene/model/SGReaderWriterXML.cxx

index eee6e08af630800c274df243895f1dea71c6c2fa..0b5def18b10c8cfb6f9a5fb2d902b1d8a8b0d107 100644 (file)
@@ -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<osg::Node> submodel_final = submodel;