From 5ab4af80c5453c795f7778e1e84a01dca4445395 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Jul 2008 20:11:37 +0000 Subject: [PATCH] Added missing ac3d supportsExtensions() constructor --- src/osgPlugins/ac/ac3d.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/ac/ac3d.cpp b/src/osgPlugins/ac/ac3d.cpp index 768485fc2..7a7eec517 100644 --- a/src/osgPlugins/ac/ac3d.cpp +++ b/src/osgPlugins/ac/ac3d.cpp @@ -68,12 +68,14 @@ class geodeVisitor : public osg::NodeVisitor { // collects geodes from scene sub class ReaderWriterAC : public osgDB::ReaderWriter { public: + + ReaderWriterAC() + { + supportsExtension("ac","AC3D Database format"); + } + virtual const char* className() const { return "AC3D Database Reader"; } - virtual bool acceptsExtension(const std::string& extension) const - { - return osgDB::equalCaseInsensitive(extension,"ac"); - } virtual ReadResult readNode(const std::string& file,const Options* options) const { std::string ext = osgDB::getFileExtension(file);