From 95cf62ec01d5573a7c886c8c7d42a7543bd67472 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Nov 2009 15:47:32 +0000 Subject: [PATCH] Removed catch --- src/osgPlugins/ac/ac3d.cpp | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) 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 "<