diff --git a/src/osgPlugins/ac/ac3d.cpp b/src/osgPlugins/ac/ac3d.cpp index c15be683f..747a87bee 100644 --- a/src/osgPlugins/ac/ac3d.cpp +++ b/src/osgPlugins/ac/ac3d.cpp @@ -165,27 +165,21 @@ class ReaderWriterAC : public osgDB::ReaderWriter virtual WriteResult writeNode(const osg::Node& node,std::ostream& fout, const Options* opts) const { - try + // write ac file. + if(dynamic_cast(&node)) { - // write ac file. - if(dynamic_cast(&node)) { - const osg::Group *gp=dynamic_cast(&node); - const unsigned int nch=gp->getNumChildren(); - for (unsigned int i=0; igetChild(i)), fout, opts); - } + const osg::Group *gp=dynamic_cast(&node); + const unsigned int nch=gp->getNumChildren(); + for (unsigned int i=0; igetChild(i)), fout, opts); } - else - osg::notify(osg::WARN)<<"File must start with a geode "<