From dab3cc35016d9796ecceddff48b7cf78c7273131 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 21 Oct 2024 02:27:06 +0200 Subject: [PATCH] Disable RegionFX plugins in safe-mode --- libs/ardour/region_fx_plugin.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/region_fx_plugin.cc b/libs/ardour/region_fx_plugin.cc index c67729917a..984c9e7c5b 100644 --- a/libs/ardour/region_fx_plugin.cc +++ b/libs/ardour/region_fx_plugin.cc @@ -300,7 +300,11 @@ RegionFxPlugin::set_state (const XMLNode& node, int version) node.get_property ("count", count); if (_plugins.empty()) { - std::shared_ptr plugin = find_and_load_plugin (_session, node, type, unique_id, any_vst); + std::shared_ptr plugin; + + if (!_session.get_disable_all_loaded_plugins ()) { + plugin = find_and_load_plugin (_session, node, type, unique_id, any_vst); + } if (!plugin) { delete _state;