From dda19601e1537cb79ced618e65df88eb431f42bf Mon Sep 17 00:00:00 2001 From: Dan German Date: Wed, 15 May 2024 19:49:34 +0300 Subject: [PATCH] remove loadState line from the block loop --- Source/blocks_plugin_processor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/blocks_plugin_processor.cpp b/Source/blocks_plugin_processor.cpp index e959992..434bcd0 100644 --- a/Source/blocks_plugin_processor.cpp +++ b/Source/blocks_plugin_processor.cpp @@ -472,7 +472,6 @@ void PluginProcessor::loadPreset(Preset preset) { // if (presetBlock.length > 1) { // expand(block->index, presetBlock.length - 1, true); // } - if (editor_ready_) main_component_->loadState(preset); } for (auto presetModulator : preset.modulators) { @@ -493,6 +492,7 @@ void PluginProcessor::loadPreset(Preset preset) { connectModulationFromModel(model); } + for (auto column_control : preset.column_controls) { auto index = column_control.id.number - 1; for (auto const& [key, val] : column_control.parameters) { @@ -501,6 +501,7 @@ void PluginProcessor::loadPreset(Preset preset) { } block_updates_++; + if (editor_ready_) main_component_->loadState(preset); pauseProcessing(false); }