From: fredb Date: Sat, 31 May 2008 12:08:17 +0000 (+0000) Subject: Report abnormal condition X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6b03555f7e12674ae08ecd02dd2783ce62f8470;p=simgear.git Report abnormal condition --- diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index b952248a..9d6a42c5 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -132,6 +132,10 @@ sgLoad3DModel_internal(const string &path, SGModelData *data, osg::Node *(*load_panel)(SGPropertyNode *)) { + if ( !prop_root ) { + SG_LOG(SG_GENERAL, SG_ALERT, "prop_root NULL: " << path); + + } string fg_root=osgDB::Registry::instance()->getDataFilePathList().front(); osg::ref_ptr model; osg::ref_ptr group;