From f940d3371b3f7bdc6a5d9f03848ccf1ff3a8de3d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 26 Dec 2020 21:13:23 +0100 Subject: [PATCH] Allow casting YaComponentInfo to IUnitHandler Quite an important detail. --- src/common/serialization/vst3/component-handler-proxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/serialization/vst3/component-handler-proxy.cpp b/src/common/serialization/vst3/component-handler-proxy.cpp index c134a39c..45753acb 100644 --- a/src/common/serialization/vst3/component-handler-proxy.cpp +++ b/src/common/serialization/vst3/component-handler-proxy.cpp @@ -48,6 +48,10 @@ Vst3ComponentHandlerProxy::queryInterface(Steinberg::FIDString _iid, QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponentHandler::iid, Steinberg::Vst::IComponentHandler) } + if (YaUnitHandler::supported()) { + QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IUnitHandler::iid, + Steinberg::Vst::IUnitHandler) + } *obj = nullptr; return Steinberg::kNoInterface;