Browse Source

AnySceneImporter: alphabetical ordering.

pull/205/head
Vladimír Vondruš 11 years ago
parent
commit
4dc3d1fac8
  1. 6
      src/MagnumPlugins/AnySceneImporter/AnySceneImporter.cpp
  2. 4
      src/MagnumPlugins/AnySceneImporter/AnySceneImporter.h

6
src/MagnumPlugins/AnySceneImporter/AnySceneImporter.cpp

@ -61,10 +61,10 @@ void AnySceneImporter::doOpenFile(const std::string& filename) {
/* Detect type from extension */
std::string plugin;
if(Utility::String::endsWith(filename, ".obj"))
plugin = "ObjImporter";
else if(Utility::String::endsWith(filename, ".dae"))
if(Utility::String::endsWith(filename, ".dae"))
plugin = "ColladaImporter";
else if(Utility::String::endsWith(filename, ".obj"))
plugin = "ObjImporter";
else if(Utility::String::endsWith(filename, ".ply"))
plugin = "StanfordImporter";
else {

4
src/MagnumPlugins/AnySceneImporter/AnySceneImporter.h

@ -39,10 +39,10 @@ namespace Magnum { namespace Trade {
Detects file type based on file extension, loads corresponding plugin and then
tries to open the file with it. Supported formats:
- OBJ (`*.obj`), loaded with @ref ObjImporter or any other plugin that
provides it
- COLLADA (`*.dae`), loaded with @ref ColladaImporter or any other plugin
that provides it
- OBJ (`*.obj`), loaded with @ref ObjImporter or any other plugin that
provides it
- Stanford (`*.ply`), loaded with @ref StanfordImporter or any other plugin
that provides it

Loading…
Cancel
Save