From b29fd128e8399704ba33eaf28b39e4ae2cf1b0a1 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 9 Aug 2019 11:43:00 -0400 Subject: [PATCH] Activate control values from patch stream (#1008) As discussed in #915, for some reason the patch unstream doesn't restore the value of the 8 controls whereas daw unstream does. This is a conscious choice by the code for no reason any of us can see, and is counterintuitive, so change it. --- src/common/SurgePatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/SurgePatch.cpp b/src/common/SurgePatch.cpp index 68147cfc092..a78dd33e8a7 100644 --- a/src/common/SurgePatch.cpp +++ b/src/common/SurgePatch.cpp @@ -1245,7 +1245,7 @@ void SurgePatch::load_xml(const void* data, int datasize, bool is_preset) { if (p->QueryIntAttribute("bipolar", &j) == TIXML_SUCCESS) scene[0].modsources[ms_ctrl1 + cont]->set_bipolar(j); - if (!is_preset && (p->QueryDoubleAttribute("v", &d) == TIXML_SUCCESS)) + if (p->QueryDoubleAttribute("v", &d) == TIXML_SUCCESS) { ((ControllerModulationSource*)scene[0].modsources[ms_ctrl1 + cont])->set_target(d); }