Add a check for the result to writeNodeFile().
This commit is contained in:
parent
f9eb43083a
commit
48cb15015f
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user