diff --git a/src/Magnum/Trade/imageconverter.cpp b/src/Magnum/Trade/imageconverter.cpp index 16afae196..c8be8e95f 100644 --- a/src/Magnum/Trade/imageconverter.cpp +++ b/src/Magnum/Trade/imageconverter.cpp @@ -446,9 +446,13 @@ no -C / --converter is specified, AnyImageConverter is used.)") return 1; } + /* Importer and converter manager */ PluginManager::Manager importerManager{ args.value("plugin-dir").empty() ? Containers::String{} : Utility::Path::join(args.value("plugin-dir"), Utility::Path::split(Trade::AbstractImporter::pluginSearchPaths().back()).second())}; + PluginManager::Manager converterManager{ + args.value("plugin-dir").empty() ? Containers::String{} : + Utility::Path::join(args.value("plugin-dir"), Utility::Path::split(Trade::AbstractImageConverter::pluginSearchPaths().back()).second())}; const Int dimensions = args.value("dimensions"); /** @todo make them array options as well? */ @@ -920,10 +924,6 @@ no -C / --converter is specified, AnyImageConverter is used.)") outputImages2D.size() > 1 || outputImages3D.size() > 1; - PluginManager::Manager converterManager{ - args.value("plugin-dir").empty() ? Containers::String{} : - Utility::Path::join(args.value("plugin-dir"), Utility::Path::split(Trade::AbstractImageConverter::pluginSearchPaths().back()).second())}; - /* Assume there's always one passed --converter option less, and the last is implicitly AnyImageConverter. All converters except the last one are expected to support ConvertMesh and the mesh is "piped" from one to the