Report abnormal condition
This commit is contained in:
parent
bb1a270532
commit
c6b03555f7
@ -132,6 +132,10 @@ sgLoad3DModel_internal(const string &path,
|
|||||||
SGModelData *data,
|
SGModelData *data,
|
||||||
osg::Node *(*load_panel)(SGPropertyNode *))
|
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();
|
string fg_root=osgDB::Registry::instance()->getDataFilePathList().front();
|
||||||
osg::ref_ptr<osg::Node> model;
|
osg::ref_ptr<osg::Node> model;
|
||||||
osg::ref_ptr<osg::Group> group;
|
osg::ref_ptr<osg::Group> group;
|
||||||
|
Loading…
Reference in New Issue
Block a user