13
0

Disable RegionFX plugins in safe-mode

This commit is contained in:
Robin Gareus 2024-10-21 02:27:06 +02:00
parent 05699c2d1a
commit dab3cc3501
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -300,7 +300,11 @@ RegionFxPlugin::set_state (const XMLNode& node, int version)
node.get_property ("count", count); node.get_property ("count", count);
if (_plugins.empty()) { if (_plugins.empty()) {
std::shared_ptr<Plugin> plugin = find_and_load_plugin (_session, node, type, unique_id, any_vst); std::shared_ptr<Plugin> plugin;
if (!_session.get_disable_all_loaded_plugins ()) {
plugin = find_and_load_plugin (_session, node, type, unique_id, any_vst);
}
if (!plugin) { if (!plugin) {
delete _state; delete _state;