From 5f25abe8d67e46fc428dc3baf581c917436a1ca2 Mon Sep 17 00:00:00 2001 From: Frederic Devernay Date: Sat, 10 Jul 2021 18:54:28 -0700 Subject: [PATCH] OfxHost: do not use Natron and Nuke plugins if useStdOFXPluginsLocation=false --- Engine/OfxHost.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Engine/OfxHost.cpp b/Engine/OfxHost.cpp index 9d51dcd83b..ecc8ee872a 100644 --- a/Engine/OfxHost.cpp +++ b/Engine/OfxHost.cpp @@ -875,9 +875,10 @@ OfxHost::loadOFXPlugins(IOPluginsMap* readersMap, /// register the image effect cache with the global plugin cache _imp->imageEffectPluginCache->registerInCache( *pluginCache ); - - pluginCache->setPluginHostPath(NATRON_APPLICATION_NAME); - pluginCache->setPluginHostPath("Nuke"); // most Nuke OFX plugins are compatible + if (useStdOFXPluginsLocation) { + pluginCache->setPluginHostPath(NATRON_APPLICATION_NAME); + pluginCache->setPluginHostPath("Nuke"); // most Nuke OFX plugins are compatible + } std::list extraPluginsSearchPaths; settings->getOpenFXPluginsSearchPaths(&extraPluginsSearchPaths); for (std::list::iterator it = extraPluginsSearchPaths.begin(); it != extraPluginsSearchPaths.end(); ++it) {