From 2f977d45c8ea244db554e5642e4d27fe5bfac298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 21 Sep 2022 01:12:54 +0200 Subject: [PATCH] sceneconverter: fix --plugin-dir for image converters. Sigh, wrong again, it should be the parent directory. The tests for this are coming too late. --- src/Magnum/SceneTools/sceneconverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/SceneTools/sceneconverter.cpp b/src/Magnum/SceneTools/sceneconverter.cpp index f24ae141d..afe6decd9 100644 --- a/src/Magnum/SceneTools/sceneconverter.cpp +++ b/src/Magnum/SceneTools/sceneconverter.cpp @@ -384,7 +384,7 @@ well, the IDs reference attributes of the first mesh.)") order. */ PluginManager::Manager 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 converterManager{