Skip to content

Commit

Permalink
fix: preset loading for Bitwig (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzantow committed May 6, 2024
1 parent 53d30a6 commit f486338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/blocks_plugin_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ void PluginProcessor::setStateInformation(const void* data, int size_in_bytes) {
if (auto preset = preset_manager_.stringToPreset(preset_string.toStdString())) {
if (engine_prepared_) {
loadPreset(*preset);
if (editor_ready_) main_component_->loadState(*preset);
} else {
pending_preset_ = preset;
// synth.presetToLoadOnInit = *preset;
Expand Down Expand Up @@ -473,6 +472,7 @@ 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 Down

0 comments on commit f486338

Please sign in to comment.