From 3c6719097e5a23d5230c7c8d31b5b54a2a6af171 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Sun, 12 Jan 2025 21:57:18 +0100 Subject: [PATCH] added needed ifdef in controller state stuff --- templates/vst3/src/vst3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/vst3/src/vst3.c b/templates/vst3/src/vst3.c index 7c1f34f..5e3466c 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -1552,9 +1552,11 @@ static Steinberg_tresult controllerSetState(void* thisInterface, struct Steinber if (IS_BIG_ENDIAN) v.u = SWAP_UINT32(v.u); c->parameters[i] = parameterAdjust(i, v.f); +# ifdef DATA_UI if (c->views) for (size_t j = 0; j < c->viewsCount; j++) plugViewUpdateParameter(c->views[j], i); +# endif } #endif return Steinberg_kResultOk;