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 */ /* Detect type from extension */
std::string plugin; std::string plugin;
if(Utility::String::endsWith(filename, ".obj")) if(Utility::String::endsWith(filename, ".dae"))
plugin = "ObjImporter";
else if(Utility::String::endsWith(filename, ".dae"))
plugin = "ColladaImporter"; plugin = "ColladaImporter";
else if(Utility::String::endsWith(filename, ".obj"))
plugin = "ObjImporter";
else if(Utility::String::endsWith(filename, ".ply")) else if(Utility::String::endsWith(filename, ".ply"))
plugin = "StanfordImporter"; plugin = "StanfordImporter";
else { 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 Detects file type based on file extension, loads corresponding plugin and then
tries to open the file with it. Supported formats: 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 - COLLADA (`*.dae`), loaded with @ref ColladaImporter or any other plugin
that provides it 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 - Stanford (`*.ply`), loaded with @ref StanfordImporter or any other plugin
that provides it that provides it

Loading…
Cancel
Save