Bug: losing lv2 state during snapshot selection
This commit is contained in:
@@ -226,7 +226,7 @@ export class SnapshotValue {
|
||||
this.isEnabled = input.isEnabled;
|
||||
this.instanceId = input.instanceId;
|
||||
this.controlValues = ControlValue.deserializeArray(input.controlValues);
|
||||
this.lv2State = input.lv2state;
|
||||
this.lv2State = input.lv2State;
|
||||
this.pathProperties = input.pathProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -1543,9 +1543,14 @@ export class PiPedalModel //implements PiPedalModel
|
||||
{
|
||||
let validPluginIds: Set<number> = new Set<number>();
|
||||
|
||||
for (let item of pedalboard.items) {
|
||||
validPluginIds.add(item.instanceId);
|
||||
let it = pedalboard.itemsGenerator();
|
||||
while (true) {
|
||||
let v = it.next();
|
||||
if (v.done) break;
|
||||
validPluginIds.add(v.value.instanceId);
|
||||
|
||||
}
|
||||
|
||||
for (let snapshot of pedalboard.snapshots) {
|
||||
if (snapshot) {
|
||||
let ix = 0;
|
||||
|
||||
Reference in New Issue
Block a user