From 62a62eaeb3324ce58a9d64d5e72c4a899b438b2e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 20 Nov 2020 00:05:34 +0100 Subject: [PATCH] VST3 resize quirks (Reason, macOS) --- gtk2_ardour/vst3_nsview_plugin_ui.mm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/vst3_nsview_plugin_ui.mm b/gtk2_ardour/vst3_nsview_plugin_ui.mm index c6e046dafe..652bc99f20 100644 --- a/gtk2_ardour/vst3_nsview_plugin_ui.mm +++ b/gtk2_ardour/vst3_nsview_plugin_ui.mm @@ -132,7 +132,14 @@ VST3NSViewPluginUI::view_size_allocate (Gtk::Allocation& allocation) allocation.set_width (rect.right - rect.left); allocation.set_height (rect.bottom - rect.top); #endif - if (view->canResize() == kResultTrue) { + bool can_resize = true; +#if 1 // quirks + /* Reason reports canResize() == kResultTrue, but crashes in onSize() + * reported to reasonstudios.com on 2020-11-19 */ + if (_vst3->unique_id() == "D75F65D1581F203A8D793B3C01583323" /* Reason Rack Plugin */) can_resize = false; + if (_vst3->unique_id() == "C64E2730B0614A6EAEFC432F9CF6151A" /* Reason Rack Plugin Effect */) can_resize = false; +#endif + if (can_resize && view->canResize() == kResultTrue) { view->onSize (&rect); } }