From 1b488d6757a0b125835fb3c920a7f3a4ba84d184 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 24 Nov 2004 15:41:36 +0000 Subject: [PATCH] Fixed typo in acceptsExtension --- src/osgPlugins/lib3ds/ReaderWriter3DS.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp b/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp index 0ad10dd02..7c09bb3b3 100644 --- a/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp +++ b/src/osgPlugins/lib3ds/ReaderWriter3DS.cpp @@ -91,7 +91,7 @@ class ReaderWriter3DS : public osgDB::ReaderWriter ReaderWriter3DS(); virtual const char* className() const { return "3DS Auto Studio Reader"; } - virtual bool accpettsExtension(const std::string& extension) const { return osgDB::equalCaseInsensitive(extension,"3ds"); } + virtual bool acceptsExtension(const std::string& extension) const { return osgDB::equalCaseInsensitive(extension,"3ds"); } virtual ReadResult readNode(const std::string& file, const osgDB::ReaderWriter::Options* options) const; @@ -418,7 +418,6 @@ osg::Node* ReaderWriter3DS::ReaderObject::processNode(StateSetMap drawStateMap,L osgDB::ReaderWriter::ReadResult ReaderWriter3DS::readNode(const std::string& file, const osgDB::ReaderWriter::Options* options) const { - std::string ext = osgDB::getLowerCaseFileExtension(file); if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED;