From edb492932f0e4c29238d9fb62b39c7f9a31cbcf8 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 16 Mar 2022 22:01:29 +0100 Subject: [PATCH] Fix parent finding in VST3 unit transformation Oops. --- src/wrapper/vst3/param_units.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/vst3/param_units.rs b/src/wrapper/vst3/param_units.rs index 38564190..6ccd47ba 100644 --- a/src/wrapper/vst3/param_units.rs +++ b/src/wrapper/vst3/param_units.rs @@ -97,7 +97,7 @@ impl ParamUnits { // We'll do an index-based loop with some clones because here it doesn't matter much for // performance anyways and otherwise it's a bit difficult to keep the borrow checker // happy ehre - let group_name = groups_units[0].0; + let group_name = groups_units[unit_id].0; // If the group name does not contain any slashes then the unit's parent should stay at // the root unit