]> git.mxchange.org Git - simgear.git/commitdiff
Report abnormal condition
authorfredb <fredb>
Sat, 31 May 2008 12:08:17 +0000 (12:08 +0000)
committerfredb <fredb>
Sat, 31 May 2008 12:08:17 +0000 (12:08 +0000)
simgear/scene/model/SGReaderWriterXML.cxx

index b952248ad13b065fadb856cb05acc8bb07431e5a..9d6a42c56b26101cdfdbc9806a67954b49b291fe 100644 (file)
@@ -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<osg::Node> model;
     osg::ref_ptr<osg::Group> group;