From 4b84acbec6738fd4266fee3645e04f4cf1463910 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 5 Sep 2007 16:47:43 +0000 Subject: [PATCH] Added automatic removal of .qt extension that allows one to automatically select the quicktime plugin. --- src/osgPlugins/quicktime/ReaderWriterQT.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osgPlugins/quicktime/ReaderWriterQT.cpp b/src/osgPlugins/quicktime/ReaderWriterQT.cpp index a79753882..caec7ded5 100644 --- a/src/osgPlugins/quicktime/ReaderWriterQT.cpp +++ b/src/osgPlugins/quicktime/ReaderWriterQT.cpp @@ -100,6 +100,11 @@ public: virtual ReadResult readImage(const std::string& file, const osgDB::ReaderWriter::Options* options) const { std::string ext = osgDB::getLowerCaseFileExtension(file); + if (osgDB::equalCaseInsensitive(ext,"qt")) + { + return readImage(osgDB::getNameLessExtension(file),options); + } + if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED; std::string fileName = osgDB::findDataFile( file, options);