Don't crash when a submodel fails to load.

This commit is contained in:
James Turner
2010-10-02 21:01:29 +01:00
parent 889e2d6f06
commit 82dc6c32ec

View 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;