Add a check for the result to writeNodeFile().

This commit is contained in:
Robert Osfield 2003-04-16 12:46:06 +00:00
parent f9eb43083a
commit 48cb15015f

View File

@ -236,8 +236,10 @@ int main( int argc, char **argv )
if (root.valid())
{
osgDB::writeNodeFile(*root,fileNameOut);
osg::notify(osg::NOTICE)<<"Data written to '"<<fileNameOut<<"'."<< std::endl;
if (osgDB::writeNodeFile(*root,fileNameOut))
{
osg::notify(osg::NOTICE)<<"Data written to '"<<fileNameOut<<"'."<< std::endl;
}
}
else
{