This commit is contained in:
2026-01-05 00:03:51 +08:00
parent 4cbdfd1a88
commit c136cdf7f6
5 changed files with 69 additions and 12 deletions
+1 -6
View File
@@ -88,12 +88,7 @@ void NodeFactory::Initialize()
library_.append(created_node);
}
std::shared_ptr<olive::plugin::OliveHost> host=std::make_shared<olive::plugin::OliveHost>();
Current::getInstance().setPluginHost(host);
std::shared_ptr<OFX::Host::ImageEffect::PluginCache> plugin_cache=std::make_shared<OFX::Host::ImageEffect::PluginCache>(*host);
plugin_cache->registerInCache(*OFX::Host::PluginCache::getPluginCache());
OFX::Host::PluginCache::getPluginCache()->scanPluginFiles();
olive::plugin::loadPlugins(QString());
for (auto plugin : OFX::Host::PluginCache::getPluginCache()->getPlugins()) {
plugin::PluginNode *plugin_node=new plugin::PluginNode(dynamic_cast<OFX::Host::ImageEffect::ImageEffectPlugin*>(plugin));