|
|
|
@ -334,10 +334,16 @@ is specified as well, the IDs reference attributes of the first mesh.)") |
|
|
|
Warning{} << "Ignoring output file for --info:" << args.value<Containers::StringView>("output"); |
|
|
|
Warning{} << "Ignoring output file for --info:" << args.value<Containers::StringView>("output"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Importer manager */ |
|
|
|
PluginManager::Manager<Trade::AbstractImporter> importerManager{ |
|
|
|
PluginManager::Manager<Trade::AbstractImporter> importerManager{ |
|
|
|
args.value("plugin-dir").empty() ? Containers::String{} : |
|
|
|
args.value("plugin-dir").empty() ? Containers::String{} : |
|
|
|
Utility::Path::join(args.value("plugin-dir"), Trade::AbstractImporter::pluginSearchPaths().back())}; |
|
|
|
Utility::Path::join(args.value("plugin-dir"), Trade::AbstractImporter::pluginSearchPaths().back())}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Scene converter manager */ |
|
|
|
|
|
|
|
PluginManager::Manager<Trade::AbstractSceneConverter> converterManager{ |
|
|
|
|
|
|
|
args.value("plugin-dir").empty() ? Containers::String{} : |
|
|
|
|
|
|
|
Utility::Path::join(args.value("plugin-dir"), Trade::AbstractSceneConverter::pluginSearchPaths().back())}; |
|
|
|
|
|
|
|
|
|
|
|
Containers::Pointer<Trade::AbstractImporter> importer = importerManager.loadAndInstantiate(args.value("importer")); |
|
|
|
Containers::Pointer<Trade::AbstractImporter> importer = importerManager.loadAndInstantiate(args.value("importer")); |
|
|
|
if(!importer) { |
|
|
|
if(!importer) { |
|
|
|
Debug{} << "Available importer plugins:" << ", "_s.join(importerManager.aliasList()); |
|
|
|
Debug{} << "Available importer plugins:" << ", "_s.join(importerManager.aliasList()); |
|
|
|
@ -1409,10 +1415,6 @@ is specified as well, the IDs reference attributes of the first mesh.)") |
|
|
|
Debug{} << "Fuzzy duplicate removal:" << beforeVertexCount << "->" << mesh->vertexCount() << "vertices"; |
|
|
|
Debug{} << "Fuzzy duplicate removal:" << beforeVertexCount << "->" << mesh->vertexCount() << "vertices"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PluginManager::Manager<Trade::AbstractSceneConverter> converterManager{ |
|
|
|
|
|
|
|
args.value("plugin-dir").empty() ? Containers::String{} : |
|
|
|
|
|
|
|
Utility::Path::join(args.value("plugin-dir"), Trade::AbstractSceneConverter::pluginSearchPaths().back())}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Assume there's always one passed --converter option less, and the last
|
|
|
|
/* Assume there's always one passed --converter option less, and the last
|
|
|
|
is implicitly AnySceneConverter. All converters except the last one are |
|
|
|
is implicitly AnySceneConverter. All converters except the last one are |
|
|
|
expected to support ConvertMesh and the mesh is "piped" from one to the |
|
|
|
expected to support ConvertMesh and the mesh is "piped" from one to the |
|
|
|
|