Skip to content

Commit

Permalink
remove loadState line from the block loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-german committed May 15, 2024
1 parent 415b706 commit dda1960
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/blocks_plugin_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -501,6 +501,7 @@ void PluginProcessor::loadPreset(Preset preset) {
}

block_updates_++;
if (editor_ready_) main_component_->loadState(preset);
pauseProcessing(false);
}

Expand Down

0 comments on commit dda1960

Please sign in to comment.