Browse Source

sceneconverter: fix --plugin-dir for image converters.

Sigh, wrong again, it should be the parent directory. The tests for this
are coming too late.
pull/594/head
Vladimír Vondruš 4 years ago
parent
commit
2f977d45c8
  1. 2
      src/Magnum/SceneTools/sceneconverter.cpp

2
src/Magnum/SceneTools/sceneconverter.cpp

@ -384,7 +384,7 @@ well, the IDs reference attributes of the first mesh.)")
order. */
PluginManager::Manager<Trade::AbstractImageConverter> imageConverterManager{
args.value("plugin-dir").empty() ? Containers::String{} :
Utility::Path::join(args.value("plugin-dir"), Trade::AbstractImageConverter::pluginSearchPaths().back())};
Utility::Path::join(args.value("plugin-dir"), Utility::Path::split(Trade::AbstractImageConverter::pluginSearchPaths().back()).second())};
/* Scene converter manager, register the image converter manager with it */
PluginManager::Manager<Trade::AbstractSceneConverter> converterManager{

Loading…
Cancel
Save